{"id":359,"date":"2025-03-19T18:10:10","date_gmt":"2025-03-19T09:10:10","guid":{"rendered":"https:\/\/cg-method.com\/photoshop\/?p=359"},"modified":"2026-10-17T13:36:20","modified_gmt":"2026-10-17T04:36:20","slug":"script-tips","status":"publish","type":"post","link":"https:\/\/cg-method.com\/photoshop\/script-tips\/","title":{"rendered":"Photoshop JSX\u306e\u66f8\u304d\u65b9\u3068\u30b3\u30fc\u30c9\u4f8b\uff5c\u6587\u66f8\u30fb\u30ec\u30a4\u30e4\u30fc\u30fb\u30d5\u30a1\u30a4\u30eb\u30fb\u30a8\u30e9\u30fc\u51e6\u7406"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Photoshop\u306eExtendScript\uff08.jsx\uff09\u3067\u3001\u6587\u66f8\u306e\u6709\u7121\u3001\u30ec\u30a4\u30e4\u30fc\u306e\u968e\u5c64\u3001\u540d\u524d\u306e\u4e00\u81f4\u3001\u30c6\u30ad\u30b9\u30c8\u578b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u6d88\u3092\u78ba\u8a8d\u3059\u308b\u77ed\u3044\u30b3\u30fc\u30c9\u4f8b\u3067\u3059\u3002\u30b3\u30d4\u30fc\u3057\u3066\u5168\u90e8\u3092\u9023\u7d50\u3059\u308b\u30b3\u30fc\u30c9\u96c6\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5404\u4f8b\u3092\u5225\u30d5\u30a1\u30a4\u30eb\u3078\u4fdd\u5b58\u3057\u3001\u5909\u66f4\u3059\u308b\u4f8b\u306f\u81ea\u4f5c\u6587\u66f8\u306e\u30b3\u30d4\u30fc\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<p class=\"wp-block-paragraph\">\u65e725\u30b3\u30fc\u30c9\u306f\u5f8c\u534a\u306e\u53c2\u7167\u8cc7\u6599\u3078\u4fdd\u6301\u3057\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2026\u5e7410\u670817\u65e5\u306b\u3001\u65b0\u3057\u3044\u4f8b\u306e\u3046\u30615\u672c\u3092\u3001Adobe Photoshop 2026\uff0827.11.0\uff09\u3068Windows 11 Pro\uff0810.0.26200\uff09\u3067\u3001\uff3b\u30d5\u30a1\u30a4\u30eb\uff3d\u2192\uff3b\u30b9\u30af\u30ea\u30d7\u30c8\uff3d\u2192\uff3b\u53c2\u7167\uff3d\u304b\u3089\u5b9f\u884c\u3057\u3066\u78ba\u304b\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u78ba\u304b\u3081\u305f\u306e\u306f\u3001\u6587\u66f8\u306e\u6709\u7121\u3001\u30b0\u30eb\u30fc\u30d7\u5185\u3092\u518d\u5e30\u3057\u3066\u540d\u524d\u3092\u8aad\u3080\u3001\u540d\u524d\u304c1\u4ef6\u3060\u3051\u4e00\u81f4\u3057\u305f\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u3076\u3001\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u306e\u8272\u3001\u5b9f\u884c\u4e2d\u306e\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u306e5\u672c\u3067\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u4e0a\u4f4d\u306e\u540d\u524d\u3001\u80cc\u666f\u306e\u89e3\u9664\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3093\u3067\u958b\u304f\u3001\u6587\u5b57\u5217\u306e\u9577\u3055\u306e4\u672c\u306f\u3001\u69cb\u6587\u3068\u6a21\u64ec\u6761\u4ef6\u306e\u691c\u67fb\u3060\u3051\u3067\u3001Photoshop\u3067\u306f\u5b9f\u884c\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u7df4\u7fd2\u7528\u306e\u6587\u66f8\uff08\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc1\u3064\u3068\u30012\u6bb5\u306b\u5165\u308c\u5b50\u306b\u3057\u305f\u30b0\u30eb\u30fc\u30d7\uff09\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u4f5c\u3063\u305f\u305f\u3081\u3001\u305d\u306e\u4f5c\u308a\u65b9\u306f\u78ba\u8a8d\u306b\u542b\u3081\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">UXP\u306e.psjs\u3068\u306fAPI\u304c\u7570\u306a\u308b\u305f\u3081\u3001<a href=\"https:\/\/cg-method.com\/photoshop\/photoshop-uxp-script-psjs\/\">JSX\u3068PSJS\u306e\u9055\u3044<\/a>\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u77ed\u3044\u30b3\u30fc\u30c9\u3092\u9078\u3076\u524d\u306e\u78ba\u8a8d<\/h2>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u64cd\u4f5c<\/th><th>\u6761\u4ef6\u3068\u6587\u66f8\u3078\u306e\u5909\u66f4<\/th><\/tr><\/thead><tbody><tr><td>\u6587\u66f8\u540d\/\u30ec\u30a4\u30e4\u30fc\u4e00\u89a7<\/td><td>\u8aad\u53d6\u306e\u307f\u3002\u80cc\u666f\u89e3\u9664\u30fb\u30e9\u30b9\u30bf\u30e9\u30a4\u30ba\u30fb\u4fdd\u5b58\u306f\u4e0d\u8981\u3002<\/td><\/tr><tr><td>\u30ec\u30a4\u30e4\u30fc\u9078\u629e<\/td><td>\u540c\u3058\u540d\u524d\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u505c\u6b62\u3002\u9078\u629e\u72b6\u614b\u306f\u5909\u308f\u308b\u304c\u4fdd\u5b58\u306f\u3057\u306a\u3044\u3002<\/td><\/tr><tr><td>\u80cc\u666f\u89e3\u9664\u30fb\u6587\u5b57\u8272<\/td><td>\u30ec\u30a4\u30e4\u30fc\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u3002\u30b3\u30d4\u30fc\u3067\u8a66\u3057\u3001\u78ba\u8a8d\u5f8c\u306f\u5143\u306b\u623b\u3059\u304b\u4fdd\u5b58\u305b\u305a\u9589\u3058\u308b\u3002<\/td><\/tr><tr><td>\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<\/td><td>\u53d6\u6d88\u30fb\u5b58\u5728\u30fb\u8aad\u8fbc\u5931\u6557\u3092\u533a\u5225\u3002\u6587\u66f8\u304c\u5897\u3048\u308b\u305f\u3081\u5bfe\u8c61\u3092\u518d\u78ba\u8a8d\u3002<\/td><\/tr><tr><td>\u524a\u9664\u30fb\u7d71\u5408\u30fb\u66f8\u304d\u51fa\u3057<\/td><td>\u539f\u672c\u3067\u8a66\u3055\u305a\u3001\u51fa\u529b\u30fb\u4e0a\u66f8\u304d\u30fb\u53d6\u6d88\u3092\u6271\u3046\u5b8c\u6210\u4f8b\u3092\u4f7f\u3046\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/raw.githubusercontent.com\/Adobe-CEP\/CEP-Resources\/master\/Documentation\/Product%20specific%20Documentation\/Photoshop%20Scripting\/photoshop-javascript-ref-2020.pdf\">Adobe\u306eJavaScript Scripting Reference 2020<\/a>\u306eDocument\/ArtLayer\/LayerSet\u3068\u3001<a href=\"https:\/\/raw.githubusercontent.com\/Adobe-CEP\/CEP-Resources\/master\/ExtendScript-Toolkit\/Guides\/JavaScript%20Tools%20Guide%20CC.pdf\">JavaScript Tools Guide<\/a>\u306eFile\/Folder\u30fb\u30a8\u30e9\u30fc\u30fb\u6587\u5b57\u5217\u3092\u78ba\u8a8d\u3057\u3066\u3044\u307e\u3059\u3002\u516c\u5f0f\u306e\u65e7\u7248\u4ed5\u69d8\u3068\u3001\u3053\u306ePC\u306e\u73fe\u884c\u7248\u3067\u306e\u64cd\u4f5c\u6210\u529f\u306f\u5206\u3051\u3066\u6271\u3044\u307e\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u6587\u66f8\u306e\u6709\u7121\u3068\u30a8\u30e9\u30fc\u3092\u78ba\u8a8d\u3059\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u5373\u6642\u95a2\u6570\u306f\u5909\u6570\u3092\u95a2\u6570\u5185\u306b\u307e\u3068\u3081\u308b\u66f8\u304d\u65b9\u3067\u3059\u3002\u30c9\u30e9\u30c3\u30b0\u5b9f\u884c\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u9808\u306e\u6761\u4ef6\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002try\/catch\u306f\u5931\u6557\u3092\u901a\u77e5\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3001\u9014\u4e2d\u306e\u7de8\u96c6\u3092\u53d6\u308a\u6d88\u3059\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>#target photoshop\n(function () {\n    if (app.documents.length === 0) { alert(\"\u6587\u66f8\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\"); return; }\n    try {\n        var doc = app.activeDocument;\n        alert(\"\u5bfe\u8c61: \" + doc.name);\n    } catch (error) {\n        alert(\"\u30a8\u30e9\u30fc: \" + error.message + \" \/ \u884c: \" + error.line);\n    }\n}());<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u753b\u50cf\u3092\u958b\u3044\u3066\u3044\u306a\u3044\u30db\u30fc\u30e0\u753b\u9762\u306e\u307e\u307e\uff3b\u53c2\u7167\uff3d\u304b\u3089\u5b9f\u884c\u3059\u308b\u3068\u3001\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u8b66\u544a\u300d\u306e\u7a93\u306b\u300c\u6587\u66f8\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-nodoc-alert.jpg\" alt=\"Photoshop\u306e\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u8b66\u544a\u300d\u306e\u7a93\u306b\u300c\u6587\u66f8\u3092\u958b\u3044\u3066\u304f\u3060\u3055\u3044\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u753b\u9762\" class=\"wp-image-1981\" width=\"204\" height=\"162\"\/><figcaption class=\"wp-element-caption\">2026-10-17\u64ae\u5f71\u3002Adobe Photoshop 2026 (27.11.0)\u3001Windows 11 Pro (10.0.26200)\u3002\u753b\u50cf\u3092\u958b\u3044\u3066\u3044\u306a\u3044\u72b6\u614b\u3067\u3001\u6587\u66f8\u306e\u6709\u7121\u3092\u78ba\u304b\u3081\u308b\u4f8b\u3092\uff3b\u30d5\u30a1\u30a4\u30eb\uff3d\u2192\uff3b\u30b9\u30af\u30ea\u30d7\u30c8\uff3d\u2192\uff3b\u53c2\u7167\uff3d\u304b\u3089\u5b9f\u884c\u3057\u305f\u3068\u304d\u306e\u7a93\uff08\u7a93\u306e\u90e8\u5206\u3060\u3051\u5207\u308a\u51fa\u3057\uff09\u3002<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u7df4\u7fd2\u7528\u306e\u6587\u66f8\u3092\u958b\u3044\u305f\u72b6\u614b\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u540c\u3058\u7a93\u306b\u300c\u5bfe\u8c61:\u300d\u3068\u6587\u66f8\u540d\u304c\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u3069\u3061\u3089\u306e\u5834\u5408\u3082\u30a8\u30e9\u30fc\u306e\u7a93\u306f\u51fa\u305a\u3001\u6587\u66f8\u306f\u5909\u308f\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u6700\u4e0a\u4f4d\u30ec\u30a4\u30e4\u30fc\u306e\u540d\u524d\u3092\u8aad\u3080<\/h2>\n\n\n<p class=\"wp-block-paragraph\">doc.layers\u306f\u6700\u4e0a\u4f4d\u306eArtLayer\u3068LayerSet\u3092\u542b\u307f\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7\u5185\u306f\u3053\u306e\u4f8b\u3067\u306f\u8aad\u3093\u3067\u3044\u307e\u305b\u3093\u3002\u65e7\u4f8b\u306b\u306f\u672b\u5c3ere\u3068\u9589\u3058\u62ec\u5f27\u306e\u4e0d\u8db3\u304c\u3042\u308a\u3001\u69cb\u6587\u30fb\u5b9f\u884c\u30a8\u30e9\u30fc\u306b\u3064\u306a\u304c\u308b\u305f\u3081\u3001\u65b0\u4f8b\u306b\u542b\u3081\u307e\u305b\u3093\u3002\u540d\u524d\u3092\u8aad\u3080\u305f\u3081\u306e\u80cc\u666f\u89e3\u9664\u3082\u4e0d\u8981\u3067\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>(function () {\n    if (app.documents.length === 0) { return; }\n    var layers = app.activeDocument.layers;\n    var names = [];\n    for (var i = 0; i &lt; layers.length; i++) { names.push(layers[i].name); }\n    alert(names.join(\"\\n\"));\n}());<\/code><\/pre>\n\n\n<h2 class=\"wp-block-heading\">\u30b0\u30eb\u30fc\u30d7\u5185\u3092\u518d\u5e30\u3057\u3066\u540d\u524d\u3092\u8aad\u3080<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u30b0\u30eb\u30fc\u30d7\u540d\u3082\u5148\u306b\u8a18\u9332\u3057\u3001\u5b50\u30ec\u30a4\u30e4\u30fc\u3078\u9032\u307f\u307e\u3059\u3002\u51fa\u529b\u9806\u306f\u3053\u306e\u8d70\u67fb\u9806\u3067\u3059\u3002\u968e\u5c64\u30d1\u30b9\u306b\u540c\u540d\u304c\u3042\u308c\u3070\u540c\u3058\u6587\u5b57\u5217\u306b\u306a\u308b\u305f\u3081\u3001\u56fa\u6709ID\u3084\u9078\u629e\u9806\u3092\u8868\u3059\u5024\u306b\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002\u901f\u5ea6\u6bd4\u8f03\u306f\u6e2c\u5b9a\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>(function () {\n    if (app.documents.length === 0) { return; }\n    var names = [];\n    function visit(parent, prefix) {\n        for (var i = 0; i &lt; parent.layers.length; i++) {\n            var layer = parent.layers[i];\n            var path = prefix + layer.name;\n            names.push(path);\n            if (layer.typename === \"LayerSet\") { visit(layer, path + \"\/\"); }\n        }\n    }\n    visit(app.activeDocument, \"\");\n    alert(names.join(\"\\n\"));\n}());<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u4e0b\u306e\u753b\u50cf\u306f\u3001\u30b0\u30eb\u30fc\u30d7A\u306e\u4e2d\u306b\u30b0\u30eb\u30fc\u30d7B\u3092\u5165\u308c\u305f\u7df4\u7fd2\u7528\u306e\u6587\u66f8\u3067\u5b9f\u884c\u3057\u305f\u7d50\u679c\u3067\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-layer-names.jpg\" alt=\"Photoshop\u306e\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u8b66\u544a\u300d\u306e\u7a93\u306b\u3001\u30b0\u30eb\u30fc\u30d7\u306e\u968e\u5c64\u3092\u542b\u3080\u30ec\u30a4\u30e4\u30fc\u540d\u304c\u4e0a\u304b\u3089\u9806\u306b7\u884c\u8868\u793a\u3055\u308c\u305f\u753b\u9762\" class=\"wp-image-1982\" width=\"241\" height=\"219\"\/><figcaption class=\"wp-element-caption\">2026-10-17\u64ae\u5f71\u3002Adobe Photoshop 2026 (27.11.0)\u3001Windows 11 Pro (10.0.26200)\u3002\u30b0\u30eb\u30fc\u30d7\u5185\u3092\u518d\u5e30\u3057\u3066\u540d\u524d\u3092\u8aad\u3080\u4f8b\u3092\u30012\u6bb5\u306e\u30b0\u30eb\u30fc\u30d7\u304c\u3042\u308b\u7df4\u7fd2\u7528\u306e\u6587\u66f8\u3067\u5b9f\u884c\u3057\u305f\u7d50\u679c\uff08\u7a93\u306e\u90e8\u5206\u3060\u3051\u5207\u308a\u51fa\u3057\uff09\u3002<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30ec\u30a4\u30e4\u30fc\u30d1\u30cd\u30eb\u306e\u4e0a\u304b\u3089\u9806\u306b\u8aad\u307f\u3001\u30b0\u30eb\u30fc\u30d7\u540d\u306e\u76f4\u5f8c\u306b\u3001\u305d\u306e\u4e2d\u306e\u30ec\u30a4\u30e4\u30fc\u304c\u300c\u30b0\u30eb\u30fc\u30d7A\/\u30b0\u30eb\u30fc\u30d7B\/\u5b50\u30ec\u30a4\u30e4\u30fc\u300d\u306e\u5f62\u3067\u4e26\u3073\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u80cc\u666f\u30ec\u30a4\u30e4\u30fc\u3082\u300c\u80cc\u666f\u300d\u3068\u3057\u3066\u6700\u5f8c\u306b\u51fa\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u5b9f\u884c\u306e\u524d\u5f8c\u3067\u30d2\u30b9\u30c8\u30ea\u30fc\u306e\u6570\u306f\u5909\u308f\u3089\u305a\u3001\u6587\u66f8\u306f\u5909\u66f4\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u540d\u524d\u304c1\u4ef6\u3060\u3051\u4e00\u81f4\u3057\u305f\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u3076<\/h2>\n\n\n<p class=\"wp-block-paragraph\">CGM_target\u3092\u63a2\u3059\u540d\u524d\u306b\u5909\u66f4\u3057\u307e\u3059\u30020\u4ef6\u307e\u305f\u306f2\u4ef6\u4ee5\u4e0a\u306a\u3089\u9078\u629e\u3057\u307e\u305b\u3093\u3002layers.getByName\u3060\u3051\u3067\u540c\u540d\u3084\u30b0\u30eb\u30fc\u30d7\u5185\u306e\u5bfe\u8c61\u3092\u4e00\u5f8b\u306b\u9078\u3079\u308b\u3068\u6271\u308f\u305a\u3001\u7bc4\u56f2\u3068\u4e00\u81f4\u4ef6\u6570\u3092\u660e\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>(function () {\n    if (app.documents.length === 0) { return; }\n    var doc = app.activeDocument;\n    var matches = [];\n    function find(parent, name) {\n        for (var i = 0; i &lt; parent.layers.length; i++) {\n            var layer = parent.layers[i];\n            if (layer.name === name) { matches.push(layer); }\n            if (layer.typename === \"LayerSet\") { find(layer, name); }\n        }\n    }\n    find(doc, \"CGM_target\");\n    if (matches.length !== 1) { alert(\"\u4e00\u81f4\u6570: \" + matches.length + \"\u3002\u9078\u629e\u3092\u5909\u3048\u307e\u305b\u3093\u3002\"); return; }\n    doc.activeLayer = matches[0];\n}());<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b0\u30eb\u30fc\u30d7A\u306e\u4e2d\u306b\u3060\u3051 <code>CGM_target<\/code> \u304c\u3042\u308b\u6587\u66f8\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u30b0\u30eb\u30fc\u30d7\u306e\u4e2d\u306e <code>CGM_target<\/code> \u304c\u9078\u629e\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-select-match.jpg\" alt=\"Photoshop\u306e\u30ec\u30a4\u30e4\u30fc\u30d1\u30cd\u30eb\u3067\u3001\u30b0\u30eb\u30fc\u30d7A\u306e\u4e2d\u306eCGM_target\u304c\u9078\u629e\u3055\u308c\u3066\u3044\u308b\u753b\u9762\" class=\"wp-image-1983\" width=\"338\" height=\"290\" srcset=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-select-match.jpg 338w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-select-match-300x257.jpg 300w\" sizes=\"auto, (max-width: 338px) 100vw, 338px\" \/><figcaption class=\"wp-element-caption\">2026-10-17\u64ae\u5f71\u3002Adobe Photoshop 2026 (27.11.0)\u3001Windows 11 Pro (10.0.26200)\u3002\u540d\u524d\u304c1\u4ef6\u3060\u3051\u4e00\u81f4\u3057\u305f\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u3076\u4f8b\u3092\u5b9f\u884c\u3057\u305f\u5f8c\u306e\u30ec\u30a4\u30e4\u30fc\u30d1\u30cd\u30eb\uff08\u30d1\u30cd\u30eb\u306e\u90e8\u5206\u3060\u3051\u5207\u308a\u51fa\u3057\uff09\u3002<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u4e0a\u4f4d\u306b\u3082\u540c\u3058\u540d\u524d\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u8db3\u3057\u3066\u5b9f\u884c\u3059\u308b\u3068\u3001\u300c\u4e00\u81f4\u6570: 2\u3002\u9078\u629e\u3092\u5909\u3048\u307e\u305b\u3093\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u3001\u9078\u629e\u306f\u5143\u306e\u300c\u898b\u51fa\u3057\u300d\u30ec\u30a4\u30e4\u30fc\u306e\u307e\u307e\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-match-two.jpg\" alt=\"Photoshop\u306e\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u8b66\u544a\u300d\u306e\u7a93\u306b\u300c\u4e00\u81f4\u6570: 2\u3002\u9078\u629e\u3092\u5909\u3048\u307e\u305b\u3093\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u305f\u753b\u9762\" class=\"wp-image-1984\" width=\"240\" height=\"167\"\/><figcaption class=\"wp-element-caption\">2026-10-17\u64ae\u5f71\u3002Adobe Photoshop 2026 (27.11.0)\u3001Windows 11 Pro (10.0.26200)\u3002\u540c\u3058\u540d\u524d\u306e\u30ec\u30a4\u30e4\u30fc\u304c2\u3064\u3042\u308b\u6587\u66f8\u3067\u3001\u540d\u524d\u3067\u9078\u3076\u4f8b\u3092\u5b9f\u884c\u3057\u305f\u3068\u304d\u306e\u7a93\uff08\u7a93\u306e\u90e8\u5206\u3060\u3051\u5207\u308a\u51fa\u3057\uff09\u3002<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u9078\u629e\u3092\u5909\u3048\u3066\u3082\u3001\u30d2\u30b9\u30c8\u30ea\u30fc\u306e\u9805\u76ee\u306f\u5897\u3048\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u80cc\u666f\u30ec\u30a4\u30e4\u30fc\u3060\u3051\u3092\u901a\u5e38\u30ec\u30a4\u30e4\u30fc\u3078\u5909\u3048\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u4f8b\u306f\u7de8\u96c6\u64cd\u4f5c\u3067\u3059\u3002\u6700\u80cc\u9762\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u80cc\u666f\u3068\u63a8\u5b9a\u305b\u305a\u3001isBackgroundLayer\u304ctrue\u306eArtLayer\u3060\u3051\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u80cc\u666f\u304c\u306a\u3044\u5834\u5408\u306f\u4efb\u610f\u306e\u6700\u80cc\u9762\u30ec\u30a4\u30e4\u30fc\u3092\u5909\u66f4\u3057\u307e\u305b\u3093\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>(function () {\n    if (app.documents.length === 0) { return; }\n    var doc = app.activeDocument;\n    for (var i = 0; i &lt; doc.artLayers.length; i++) {\n        if (doc.artLayers[i].isBackgroundLayer) {\n            doc.artLayers[i].isBackgroundLayer = false;\n            return;\n        }\n    }\n    alert(\"\u80cc\u666f\u30ec\u30a4\u30e4\u30fc\u304c\u306a\u3044\u305f\u3081\u5909\u66f4\u3057\u307e\u305b\u3093\u3002\");\n}());<\/code><\/pre>\n\n\n<h2 class=\"wp-block-heading\">\u9078\u629e\u3057\u305f\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u306e\u8272\u3092\u5909\u3048\u308b<\/h2>\n\n\n<p class=\"wp-block-paragraph\">ArtLayer\u304b\u3064LayerKind.TEXT\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u6587\u5b57\u8272\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u901a\u5e38\u30ec\u30a4\u30e4\u30fc\u3084\u30b0\u30eb\u30fc\u30d7\u306b\u306ftextItem\u3092\u8aad\u307e\u305b\u307e\u305b\u3093\u3002\u8907\u6570\u306e\u6587\u5b57\u8272\u3092\u6301\u3064\u30c6\u30ad\u30b9\u30c8\u306e\u4fdd\u6301\u306f\u3053\u306e\u4f8b\u306e\u76ee\u7684\u306b\u542b\u3081\u305a\u3001\u5168\u4f53\u306e\u8272\u3092\u5909\u3048\u308b\u64cd\u4f5c\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>(function () {\n    if (app.documents.length === 0) { return; }\n    var layer = app.activeDocument.activeLayer;\n    if (layer.typename !== \"ArtLayer\" || layer.kind !== LayerKind.TEXT) {\n        alert(\"\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\"); return;\n    }\n    var color = new SolidColor();\n    color.rgb.red = 0; color.rgb.green = 255; color.rgb.blue = 0;\n    layer.textItem.color = color;\n}());<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\u9ed2\u3044\u6587\u5b57\u306e\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u3093\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u6587\u5b57\u8272\u304c\u7dd1\uff08RGB 0\u30fb255\u30fb0\uff09\u306b\u5909\u308f\u308a\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d2\u30b9\u30c8\u30ea\u30fc\u306b\u306f\u300c\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u3092\u7de8\u96c6\u300d\u304c1\u3064\u5897\u3048\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-text-color.jpg\" alt=\"Photoshop\u3067\u300c\u30c6\u30b9\u30c8\u898b\u51fa\u3057\u300d\u306e\u6587\u5b57\u304c\u7dd1\u306b\u306a\u308a\u3001\u30d7\u30ed\u30d1\u30c6\u30a3\u30d1\u30cd\u30eb\u306e\u30ab\u30e9\u30fc\u3082\u7dd1\u306b\u306a\u3063\u305f\u753b\u9762\" class=\"wp-image-1985\" width=\"1920\" height=\"1032\" srcset=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-text-color.jpg 1920w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-text-color-300x161.jpg 300w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-text-color-1024x550.jpg 1024w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-text-color-768x413.jpg 768w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-text-color-1536x826.jpg 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><figcaption class=\"wp-element-caption\">2026-10-17\u64ae\u5f71\u3002Adobe Photoshop 2026 (27.11.0)\u3001Windows 11 Pro (10.0.26200)\u3002\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u306e\u8272\u3092\u5909\u3048\u308b\u4f8b\u3092\u3001\u9ed2\u3044\u6587\u5b57\u306e\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u3093\u3067\u5b9f\u884c\u3057\u305f\u5f8c\u306e\u753b\u9762\u3002<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">\u901a\u5e38\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u3093\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u300c\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u300d\u3068\u8868\u793a\u3055\u308c\u3001\u6587\u5b57\u8272\u3082\u30d2\u30b9\u30c8\u30ea\u30fc\u3082\u5909\u308f\u308a\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3093\u3067\u958b\u304f<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u958b\u304f\u30d5\u30a1\u30a4\u30eb\u3092\u5229\u7528\u8005\u304c\u9078\u3073\u3001\u53d6\u6d88\u306a\u3089\u7d42\u4e86\u3057\u307e\u3059\u3002\u5b58\u5728\u3057\u3066\u3082\u3001\u5f62\u5f0f\u30fb\u6a29\u9650\u30fb\u7834\u640d\u7b49\u3067\u958b\u3051\u306a\u3044\u5834\u5408\u304c\u3042\u308a\u307e\u3059\u3002\u30a8\u30e9\u30fc\u8868\u793a\u3068\u5b9f\u969b\u306b\u958b\u3044\u305f\u6587\u66f8\u3092\u7167\u5408\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>(function () {\n    var file = File.openDialog(\"Photoshop\u3067\u958b\u304f\u753b\u50cf\u3092\u9078\u629e\u3057\u3066\u304f\u3060\u3055\u3044\");\n    if (file === null) { return; }\n    if (!file.exists) { alert(\"\u30d5\u30a1\u30a4\u30eb\u304c\u3042\u308a\u307e\u305b\u3093\u3002\"); return; }\n    try { app.open(file); } catch (error) { alert(\"\u958b\u3051\u307e\u305b\u3093: \" + error.message); }\n}());<\/code><\/pre>\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u884c\u4e2d\u306eJSX\u306e\u30d1\u30b9\u3092\u8aad\u3080<\/h2>\n\n\n<p class=\"wp-block-paragraph\">$.fileName\u3092File\u3078\u6e21\u3057\u3001OS\u5f62\u5f0f\u306efsName\u3092\u8aad\u307f\u307e\u3059\u3002URI\u8868\u8a18\u3068OS\u30d1\u30b9\u3092\u6df7\u305c\u305f\u308a\u3001\u3059\u3067\u306b\u5fa9\u53f7\u6e08\u307f\u306e\u6587\u5b57\u5217\u3078decodeURI\u3092\u91cd\u306d\u305f\u308a\u3057\u307e\u305b\u3093\u3002\u30b3\u30f3\u30bd\u30fc\u30eb\u8868\u793a\u3068Photoshop\u306e\u30a2\u30e9\u30fc\u30c8\u306f\u7570\u306a\u308a\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>var scriptFile = new File($.fileName);\n$.writeln(scriptFile.fsName);<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">\uff3b\u53c2\u7167\uff3d\u304b\u3089\u5b9f\u884c\u3059\u308b\u3068\u3001Photoshop\u306e\u753b\u9762\u306b\u306f\u4f55\u3082\u8868\u793a\u3055\u308c\u307e\u305b\u3093\u3067\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>$.writeln()<\/code> \u306e\u51fa\u529b\u306fPhotoshop\u306e\u7a93\u306b\u306f\u51fa\u306a\u3044\u305f\u3081\u3001\u753b\u9762\u3067\u78ba\u304b\u3081\u305f\u3044\u3068\u304d\u306f2\u884c\u76ee\u3092 <code>alert()<\/code> \u306b\u5909\u3048\u307e\u3059\u3002<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var scriptFile = new File($.fileName);\nalert(scriptFile.fsName);<\/code><\/pre><\/div>\n\n\n\n<p class=\"wp-block-paragraph\">\u3053\u306e\u5f62\u3067\u5b9f\u884c\u3059\u308b\u3068\u3001\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u8b66\u544a\u300d\u306e\u7a93\u306b\u3001\u5b9f\u884c\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u30d5\u30eb\u30d1\u30b9\u304cWindows\u306e\u5f62\u5f0f\u3067\u8868\u793a\u3055\u308c\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/10\/cgm-20261017-ps-script-tips-path-alert.jpg\" alt=\"Photoshop\u306e\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u8b66\u544a\u300d\u306e\u7a93\u306b\u3001\u5b9f\u884c\u3057\u305f\u30d5\u30a1\u30a4\u30eb\u306e\u30d1\u30b9\u304c\u8868\u793a\u3055\u308c\u305f\u753b\u9762\" class=\"wp-image-1986\" width=\"242\" height=\"167\"\/><figcaption class=\"wp-element-caption\">2026-10-17\u64ae\u5f71\u3002Adobe Photoshop 2026 (27.11.0)\u3001Windows 11 Pro (10.0.26200)\u3002\u30d1\u30b9\u3092\u8aad\u3080\u4f8b\u306e2\u884c\u76ee\u3092 alert() \u306b\u5909\u3048\u3066\u5b9f\u884c\u3057\u305f\u3068\u304d\u306e\u7a93\u3002R: \u306f\u78ba\u8a8d\u7528\u306b\u5272\u308a\u5f53\u3066\u305f\u4e00\u6642\u30c9\u30e9\u30a4\u30d6\u3067\u3059\uff08\u7a93\u306e\u90e8\u5206\u3060\u3051\u5207\u308a\u51fa\u3057\uff09\u3002<\/figcaption><\/figure>\n\n\n<h2 class=\"wp-block-heading\">\u6587\u5b57\u5217length\u304c\u6570\u3048\u308b\u5358\u4f4d<\/h2>\n\n\n<p class=\"wp-block-paragraph\">length\u306fUTF-16\u30b3\u30fc\u30c9\u5358\u4f4d\u3067\u3059\u3002\u7d75\u6587\u5b57\u7b49\u306e\u898b\u305f\u76ee1\u6587\u5b57\u3068\u4e00\u81f4\u3059\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u65e7\u4f8b\u306f\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u304b\u3089\u53d6\u5f97\u305b\u305a\u56fa\u5b9a\u6587\u5b57\u5217\u3092\u51e6\u7406\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u30ec\u30a4\u30e4\u30fc\u306e\u6587\u5b57\u6570\u3092\u81ea\u52d5\u53d6\u5f97\u3059\u308b\u8aac\u660e\u3068\u306f\u533a\u5225\u3057\u307e\u3059\u3002<\/p>\n\n\n<pre class=\"wp-block-code\"><code>var words = \"\u3042\u3044\u3046\u3048\u304a\";\nalert(\"UTF-16\u30b3\u30fc\u30c9\u5358\u4f4d: \" + words.length);<\/code><\/pre>\n\n\n<h2 class=\"wp-block-heading\">\u65e7\u4f8b\u306e\u524d\u9762\u30fb\u30de\u30b9\u30af\u30fb\u524a\u9664\u30fbGIF\u30fb\u9032\u6357\u3092\u6271\u3046\u5834\u5408<\/h2>\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>\u65e7\u51e6\u7406<\/th><th>\u78ba\u8a8d\u30fb\u6539\u5584\u304c\u5fc5\u8981\u306a\u70b9<\/th><\/tr><\/thead><tbody><tr><td>bringToFront \/ \u6700\u524d\u9762\u30fb\u4e0a\u4e0b\u9078\u629e<\/td><td>\u30a2\u30d7\u30ea\u524d\u9762\u3068\u30ec\u30a4\u30e4\u30fc\u9078\u629e\u306f\u5225\u3002Action Manager\u306e\u6307\u5b9a\u306f\u73fe\u5728\u306e\u9078\u629e\u30fb\u6700\u4e0a\/\u4e0b\u7aef\u30fb\u30b0\u30eb\u30fc\u30d7\u6761\u4ef6\u3067\u5b9f\u6a5f\u6bd4\u8f03\u3059\u308b\u3002<\/td><\/tr><tr><td>hasLayerMask<\/td><td>UsrM\u306b\u3088\u308b\u30e6\u30fc\u30b6\u30fc\u30de\u30b9\u30af\u306e\u691c\u51fa\u306f\u30d9\u30af\u30c8\u30eb\u30de\u30b9\u30af\u7b49\u3068\u533a\u5225\u3002catch\u3067false\u3092\u8fd4\u3059\u65e7\u4f8b\u306f\u3001\u5bfe\u8c61\u306a\u3057\u3068\u8aad\u53d6\u30a8\u30e9\u30fc\u3092\u533a\u5225\u3067\u304d\u306a\u3044\u3002<\/td><\/tr><tr><td>artLayers\u306e\u6700\u80cc\u9762\u524a\u9664<\/td><td>layers\u5168\u4f53\u306e\u6700\u80cc\u9762\u3084LayerSet\u3068\u540c\u3058\u3067\u306f\u306a\u3044\u3002\u524a\u9664\u5bfe\u8c61\u3092\u660e\u793a\u3057\u3001\u539f\u672c\u3067\u5b9f\u884c\u3057\u306a\u3044\u3002<\/td><\/tr><tr><td>rasterizeAllLayers \/ blendMode \/ opacity<\/td><td>\u30c6\u30ad\u30b9\u30c8\u3084\u30b9\u30de\u30fc\u30c8\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u7b49\u306e\u7de8\u96c6\u60c5\u5831\u3092\u5909\u3048\u308b\u64cd\u4f5c\u3002\u5bfe\u8c61\u578b\u30fb\u30ed\u30c3\u30af\u30fb\u6587\u66f8\u30e2\u30fc\u30c9\u3092\u78ba\u8a8d\u3059\u308b\u3002<\/td><\/tr><tr><td>GIF\u4fdd\u5b58<\/td><td>\u65e7exportPng\u3068\u3044\u3046\u95a2\u6570\u540d\u3067\u3082format\u306fGIF\u3002PNG\u51e6\u7406\u3068\u8aa4\u8a8d\u3057\u306a\u3044\u3002\u4fdd\u5b58\u5148\u3001\u65e2\u5b58\u51fa\u529b\u3001\u8272\u6570\/\u900f\u660e\/\u753b\u8cea\u3092\u5225\u306b\u78ba\u8a8d\u3059\u308b\u3002<\/td><\/tr><tr><td>suspendHistory \/ progressbar<\/td><td>\u30d2\u30b9\u30c8\u30ea\u30fc\u3092\u307e\u3068\u3081\u3066\u3082\u5931\u6557\u6642\u306e\u81ea\u52d5\u5fa9\u5143\u306b\u306f\u306a\u3089\u306a\u3044\u3002\u9032\u6357\u306f\u51e6\u7406\u6e08\u307f\u4ef6\u6570\u3067\u66f4\u65b0\u3057\u3001\u4f8b\u5916\u30fb\u53d6\u6d88\u3067\u3082UI\u3092\u9589\u3058\u308b\u69cb\u6210\u304c\u5fc5\u8981\u3002\u65e70\u958b\u59cb\u3067\u306f\u6700\u5f8c\u304cmax\u306b\u5c4a\u304b\u306a\u3044\u3002<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n<p class=\"wp-block-paragraph\">\u3053\u308c\u3089\u306e\u65e7\u30b3\u30fc\u30c9\u306f\u305d\u306e\u307e\u307e\u306e\u5b8c\u6210\u4f8b\u3068\u3057\u3066\u306f\u6271\u3044\u307e\u305b\u3093\u3002<a href=\"https:\/\/cg-method.com\/photoshop\/duplicate-select-layer-2\/\">\u8907\u88fd\u3057\u3066\u5225\u540dPSD\u4fdd\u5b58<\/a>\u3084<a href=\"https:\/\/cg-method.com\/photoshop\/photoshop-scriptui-dialog\/\">ScriptUI\u306e\u5165\u529b\u30fb\u9032\u6357\u30fb\u53d6\u6d88<\/a>\u306a\u3069\u3001\u5bfe\u8c61\u3068\u5931\u6557\u5f8c\u306e\u72b6\u614b\u3092\u5b9a\u3081\u305f\u8a18\u4e8b\u3092\u4f7f\u3063\u3066\u304f\u3060\u3055\u3044\u3002\u30ec\u30a4\u30e4\u30fc\u524a\u9664\u3084\u66f8\u304d\u51fa\u3057\u306e\u6210\u529f\u306f\u65b0\u4f8b\u3067\u3082\u5b9f\u6a5f\u78ba\u8a8d\u304c\u5fc5\u8981\u3067\u3059\u3002<\/p>\n\n\n<h2 class=\"wp-block-heading\">\u5b9f\u884c\u5165\u53e3\u3068\u65e7\u30c9\u30e9\u30c3\u30b0\u753b\u9762<\/h2>\n\n\n<p class=\"wp-block-paragraph\">\u6700\u521d\u306f<a href=\"https:\/\/cg-method.com\/photoshop\/external-jsx\/\">\u30d5\u30a1\u30a4\u30eb\u2192\u30b9\u30af\u30ea\u30d7\u30c8\u2192\u53c2\u7167<\/a>\u3067\u5b9f\u884c\u3057\u3001\u6163\u308c\u305f\u30b3\u30fc\u30c9\u3060\u3051<a href=\"https:\/\/cg-method.com\/photoshop\/script-menu\/\">\u30e1\u30cb\u30e5\u30fc\u3078\u767b\u9332<\/a>\u3057\u307e\u3059\u3002\u4e0b\u306e\u65e7\u30c9\u30e9\u30c3\u30b0\u753b\u9762\u306f\u904e\u53bb\u306e\u8a18\u9332\u3067\u3001\u4eca\u56de\u306e\u7248\u3067\u306e\u30c9\u30e9\u30c3\u30b0\u53d7\u4ed8\u3084\u6210\u529f\u3092\u78ba\u8a8d\u3057\u305f\u3082\u306e\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"344\" height=\"143\" alt=\"\u65e7\u8a18\u4e8b\u306eJSX\u30c9\u30e9\u30c3\u30b0\u753b\u9762\u3002\u300c\u30b3\u30d4\u30fc\u300d\u306e\u8868\u793a\u3068\u30bf\u30d6\u5468\u8fba\u304c\u5199\u3063\u3066\u3044\u307e\u3059\u3002\u5b9f\u884c\u6210\u529f\u3092\u793a\u3059\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\" class=\"wp-image-360\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/Screenshot_2018_1118_01.jpg\" srcset=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/Screenshot_2018_1118_01.jpg 344w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/Screenshot_2018_1118_01-300x125.jpg 300w\" sizes=\"auto, (max-width: 344px) 100vw, 344px\" \/><figcaption class=\"wp-element-caption\">\u65e7\u8a18\u4e8b\u306eJSX\u30c9\u30e9\u30c3\u30b0\u753b\u9762\u3002\u300c\u30b3\u30d4\u30fc\u300d\u306e\u8868\u793a\u3068\u30bf\u30d6\u5468\u8fba\u304c\u5199\u3063\u3066\u3044\u307e\u3059\u3002\u5b9f\u884c\u6210\u529f\u3092\u793a\u3059\u30c0\u30a4\u30a2\u30ed\u30b0\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002 \u904e\u53bb\u306e\u63b2\u8f09\u753b\u50cf\u3067\u3001\u64ae\u5f71\u65e5\u30fb\u8a73\u7d30\u7248\u306f\u672a\u78ba\u8a8d\u3067\u3059\u3002<\/figcaption><\/figure>\n\n<h2 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9\u30fb\u914d\u5e03\u5143\u30fb\u95a2\u9023\u64cd\u4f5c<\/h2>\n\n\n<details class=\"wp-block-details is-layout-flow wp-block-details-is-layout-flow\"><summary>\u65e7\u30b3\u30fc\u30c9\u306e\u53c2\u7167\u8cc7\u6599\uff08\u5b9f\u884c\u3057\u306a\u3044\uff09<\/summary>\n<p class=\"wp-block-paragraph\">\u65e725\u30b3\u30fc\u30c9\u3092\u539f\u6587\u3067\u4fdd\u6301\u3057\u3066\u3044\u307e\u3059\u3002\u672b\u5c3ere\u3001\u8aad\u53d6\u306e\u524d\u306e\u80cc\u666f\u89e3\u9664\u3001\u56fa\u5b9a\u540d\/\u4fdd\u5b58\u5148\u3001\u578b\u78ba\u8a8d\u306e\u306a\u3044textItem\u3001\u30a8\u30e9\u30fc\u3092false\u306b\u96a0\u3059\u30de\u30b9\u30af\u5224\u5b9a\u306a\u3069\u3092\u542b\u307f\u307e\u3059\u3002\u65b0\u4f8b\u3078\u6df7\u305c\u3066\u5b9f\u884c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 1<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/--------------------------------------------------\n\/\/ \u95a2\u6570\n\/\/--------------------------------------------------<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 2<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>#target photoshop\n\nfunction test(){\n    try {\n        \/\/\u4f5c\u6210\u3057\u305f\u30b9\u30af\u30ea\u30d7\u30c8\n    } catch (e){\n        alert(&quot;\u30a8\u30e9\u30fc\u767a\u751f&quot;);\n    }\n}\ntest();<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 3<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>(function(){\nalert(&quot;\u30c6\u30b9\u30c8\u3060\u3088\uff01&quot;);\n})() ;<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 4<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>(function(){\nalert(&quot;\u30c6\u30b9\u30c8\u3060\u3088\uff01&quot;);\n}()) ;<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 5<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>app.bringToFront();<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 6<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var doc= activeDocument;\nvar bg = doc.layers.length;\ndoc.layers[bg-1].isBackgroundLayer = false;<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 7<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>function selectFront() {\n    var idslct = charIDToTypeID( &quot;slct&quot; );\n    var desc250 = new ActionDescriptor();\n    var idnull = charIDToTypeID( &quot;null&quot; );\n    var ref207 = new ActionReference();\n    var idLyr = charIDToTypeID( &quot;Lyr &quot; );\n    var idOrdn = charIDToTypeID( &quot;Ordn&quot; );\n    var idFrnt = charIDToTypeID( &quot;Frnt&quot; );\n    ref207.putEnumerated( idLyr, idOrdn, idFrnt );\n    desc250.putReference( idnull, ref207 );\n    var idMkVs = charIDToTypeID( &quot;MkVs&quot; );\n    desc250.putBoolean( idMkVs, false );\n    executeAction( idslct, desc250, DialogModes.NO );\n}\nselectFront();<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 8<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u4e00\u3064\u4e0a\u306e\u30ec\u30a4\u30e4\u30fc\u306b\u79fb\u52d5\nfunction selectLayerForward() {\n  var desc = new ActionDescriptor();\n  var ref = new ActionReference();\n  ref.putEnumerated( charIDToTypeID( &quot;Lyr &quot; ), charIDToTypeID( &quot;Ordn&quot; ), charIDToTypeID( &quot;Frwr&quot; ) );\n  desc.putReference( charIDToTypeID( &quot;null&quot; ), ref );\n  desc.putBoolean( charIDToTypeID( &quot;MkVs&quot; ), false );\n  executeAction( charIDToTypeID( &quot;slct&quot; ), desc, DialogModes.NO );\n}\nselectLayerForward();<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 9<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>\/\/ \u4e00\u3064\u4e0b\u306e\u30ec\u30a4\u30e4\u30fc\u306b\u79fb\u52d5\nfunction selectLayerBelow() {\n  var desc = new ActionDescriptor();\n  var ref = new ActionReference();\n  ref.putEnumerated( charIDToTypeID( &quot;Lyr &quot; ), charIDToTypeID( &quot;Ordn&quot; ), charIDToTypeID( &quot;Bckw&quot; ) );\n  desc.putReference( charIDToTypeID( &quot;null&quot; ), ref );\n  desc.putBoolean( charIDToTypeID( &quot;MkVs&quot; ), false );\n  executeAction( charIDToTypeID( &quot;slct&quot; ), desc, DialogModes.NO );\n}\nselectLayerBelow();<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 10<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var doc=app.activeDocument;\ndoc.activeLayer=doc.layers.getByName(&quot;\u80cc\u666f&quot;);  <\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 11<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var doc = activeDocument;\nvar lay = doc.layers;\ndoc.activeLayer = lay[lay.length - 1]<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 12<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>if(activeDocument.activeLayer.typename == &quot;ArtLayer&quot; && hasLayerMask() == true){\n      alert(&quot;\u30de\u30b9\u30af\u6709\u308a&quot;);\n        }\n\n    else{\n      alert(&quot;\u30de\u30b9\u30af\u7121\u3057&quot;);\n}\n\n\/\/ \u30ec\u30a4\u30e4\u30fc\u30de\u30b9\u30af\u304c\u3042\u308b\u304b\u3069\u3046\u304b\u306e\u5224\u5b9a\nfunction hasLayerMask() {\n    var hasLayerMask = false;\n    try {\n        var ref = new ActionReference();\n        var keyUserMaskEnabled = app.charIDToTypeID( &#39;UsrM&#39; );\n        ref.putProperty( app.charIDToTypeID( &#39;Prpr&#39; ), keyUserMaskEnabled );\n        ref.putEnumerated( app.charIDToTypeID( &#39;Lyr &#39; ), app.charIDToTypeID( &#39;Ordn&#39; ), app.charIDToTypeID( &#39;Trgt&#39; ) );\n        var desc = executeActionGet( ref );\n        if ( desc.hasKey( keyUserMaskEnabled ) ) {\n            hasLayerMask = true;\n            }\n        }catch(e) {\n            hasLayerMask = false;\n            }\n        return hasLayerMask;\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 13<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var doc=app.activeDocument;\nvar lay=doc.artLayers.getByName(&quot;\u80cc\u666f&quot;);\nlay.visible = false; <\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 14<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>\/\/\u4e00\u756a\u4e0b\u306e\u30ec\u30a4\u30e4\u30fc\u306e\u524a\u9664\nvar layObj = activeDocument.artLayers;\nvar bgLayer = layObj[layObj.length-1];\nbgLayer.remove();<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 15<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>activeDocument.rasterizeAllLayers();<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 16<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>doc = activeDocument; \ndoc.activeLayer.blendMode  = BlendMode.MULTIPLY;\ndoc.activeLayer.opacity = 10;<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 17<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var doc = app.activeDocument;\nvar docName = doc.name;\nvar docPath = &quot;~\/Desktop&quot;;\/\/PSD\u3068\u540c\u3058\u968e\u5c64\u4e0b\u306b\u66f8\u304d\u51fa\u3057\u305f\u3044\u6642\u306fvar docPath = doc.path\u306b\u3059\u308b\nvar folder  = new Folder(docPath);\nif (docName.indexOf(&quot;.&quot;) != -1) {\n    var basename = docName.match(\/(.*)\\.[^\\.]+$\/)[1];\n}\nelse {\n    var basename = docName;\n}\nexportPng(doc, folder, basename+ &#39;.gif&#39;);\n\nfunction exportPng(doc, folder, name) {\n    var file = new File(folder.fsName + &quot;\/&quot; + name);\n    var options = new ExportOptionsSaveForWeb(); \n    options.format = SaveDocumentType.COMPUSERVEGIF;\n    options.quality = 0;\n    doc.exportDocument(file, ExportType.SAVEFORWEB, options);\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 18<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>openSpecificFile(&quot;~\/Desktop\/sample.psd&quot;);\n\nfunction openSpecificFile(path){\n    var filename = new File(path);\n     open(filename);\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 19<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var filePath = decodeURI(File($.fileName));\n$.writeln(filePath);<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 20<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var str =&quot;\u3042\u3044\u3046\u3048\u304a.jsx&quot;\n$.writeln(baseName(str));\n\nfunction baseName(str) {\n    var base = new String(str).substring(str.lastIndexOf(&#39;\/&#39;) + 1);\n    if (base.lastIndexOf(&quot;.&quot;) != -1)\n        base = base.substring(0, base.lastIndexOf(&quot;.&quot;));\n    return base;\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 21<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var doc = activeDocument;\nvar layers = doc.layers;\nvar arr = [];\nlayers[layers.length - 1].isBackgroundLayer = false;\/\/\u80cc\u666f\u30ec\u30a4\u30e4\u30fc\u306e\u89e3\u9664\n\ndoc.suspendHistory(&quot;\u30d2\u30b9\u30c8\u30ea\u30fc\u540d&quot;, &quot;main()&quot;);\n\nfunction main() {\n    getLayerName();\n    var list = arr.join(&quot;\\n&quot;);\n    alert(list);\n}\n\nfunction getLayerName() {\n    for (var i = 0; i &lt; layers.length; i++) {\n        var item = layers[i];\n        var name = item.name;\n        arr.push(name);\n    }\n    re<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 22<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var doc = activeDocument;\nvar layers = doc.layers;\nvar arr = [];\nlayers[layers.length - 1].isBackgroundLayer = false; \/\/\u80cc\u666f\u30ec\u30a4\u30e4\u30fc\u306e\u89e3\u9664\n\ndoc.suspendHistory(&quot;\u30d2\u30b9\u30c8\u30ea\u30fc\u540d&quot;, &quot;main()&quot;);\n\nfunction main() {\n    getLayerName(activeDocument);\n    var list = arr.join(&quot;\\n&quot;);\n    alert(list);\n}\n\nfunction getLayerName(parent) {\n    var childLayers = parent.layers;\n    for (var i = 0; i &lt; childLayers.length; i++) {\n        if (childLayers[i].typename == &quot;LayerSet&quot;) {\n            getLayerName(childLayers[i]);\n        }\n        arr.push(childLayers[i].name);\n    }\n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 23<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var doc = activeDocument;   \nvar lay = doc.layers;\nvar arr = [];\ndoc.suspendHistory(&quot;\u30d2\u30b9\u30c8\u30ea\u30fc\u540d&quot;, &quot;main()&quot;);\n\nfunction main() {\n    var win = new Window(&quot;palette&quot;, &quot;loading\u2026&quot;);\n    var max = lay.length;\n    win.progressbar = win.add(&quot;Progressbar&quot;, [10, 10, 300, 20], 0, max);\n    win.center();\n    win.show();\n\n    for (var i = 0; i &lt; max; i++) {\n        arr.push(lay[i].name);\n        win.progressbar.value = i;\n        $.sleep(10);\/\/\u30a4\u30f3\u30af\u30ea\u30e1\u30f3\u30c8\u3059\u308b\u4e8b\u306b\u51e6\u7406\u3092\u5c11\u3057\u3060\u3051\u6b62\u3081\u308b  \n        win.update();\/\/\u30c0\u30a4\u30a2\u30ed\u30b0\u306e\u72b6\u6cc1\u3092\u66f4\u65b0\n    }\n    win.close();\n    var list = arr.join(&quot;\\n&quot;);\n    alert(list);    \n}<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 24<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>layer = app.activeDocument.activeLayer;\n\nlayer.textItem.color.rgb.red = 0;\nlayer.textItem.color.rgb.green = 255;\nlayer.textItem.color.rgb.blue = 0;<\/code><\/pre><\/div>\n\n<h3 class=\"wp-block-heading\">\u65e7\u30b3\u30fc\u30c9 25<\/h3>\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-js\" data-lang=\"JavaScript\"><code>var words = &quot;\u3042\u3044\u3046\u3048\u304a&quot;;\nwords = words.replace(\/(\\r\\n|\\n|\\r)\/gm,&quot; &quot;);\nwhile (words.indexOf(&quot;  &quot;) != -1) {words = words.replace(&quot;  &quot;, &quot; &quot;)};\nvar endSpace = \/\\s$\/;\nwords = words.replace(endSpace, &quot;&quot;);\nvar charCount = words.split(&quot; &quot;).join(&quot; &quot;).length;\nalert (&quot;\\n &quot;+ charCount + &quot; Characters&quot;);<\/code><\/pre><\/div>\n<\/details>\n\n\n<p class=\"wp-block-paragraph\"><a href=\"https:\/\/github.com\/MOTOKI-LLC\/cg-method-code\/tree\/main\/photoshop\/script-tips\">\u65e7GitHub\u30b3\u30fc\u30c9\u96c6<\/a>\u306f\u66f4\u65b0\u3057\u3066\u3044\u307e\u305b\u3093\u3002\u4ee5\u4e0b\u306f\u500b\u5225\u306e\u5b8c\u6210\u4f8b\u30fb\u64cd\u4f5c\u76ee\u7684\u3078\u9032\u3080\u5c0e\u7dda\u3067\u3059\u3002<\/p>\n\n<div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2026\/09\/photoshop-matome-3-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/photoshop\/photoshop-matome\/\">Photoshop\u306e\u4f7f\u3044\u65b9\uff5c\u4fdd\u5b58\u30fb\u30ec\u30a4\u30e4\u30fc\u30fb\u4e00\u62ec\u51e6\u7406\u304b\u3089\u63a2\u3059<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Photoshop\u3067\u3084\u308a\u305f\u3044\u4f5c\u696d\u304b\u3089\u8a18\u4e8b\u3092\u9078\u3079\u307e\u3059\u3002\u8907\u6570\u306e\u753b\u50cf\u306b\u540c\u3058\u7de8\u96c6\u3092\u7e70\u308a\u8fd4\u3059\u5834\u5408\u306f\u300c\u30a2\u30af\u30b7\u30e7\u30f3\u30fb\u4e00\u62ec\u51e6\u7406\u300d\u3001JSX\u30d5\u30a1\u30a4\u30eb\u3092\u521d\u3081\u3066\u4f7f\u3046\u5834\u5408\u306f\u300c\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5c0e\u5165\u30fb\u5b9f&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div><div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/script-menu-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/photoshop\/script-menu\/\">Photoshop\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30e1\u30cb\u30e5\u30fc\u306b\u767b\u9332\u3059\u308b\u65b9\u6cd5\uff5c\u914d\u7f6e\u5148\u30fb\u8868\u793a\u540d\u30fb\u81ea\u52d5\u51e6\u7406<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u7e70\u308a\u8fd4\u3057\u4f7f\u3046JSX\u306f\u3001\u4f7f\u7528\u3057\u3066\u3044\u308bPhotoshop\u306e Presets\/Scripts \u30d5\u30a9\u30eb\u30c0\u30fc\u3078\u914d\u7f6e\u3057\u3066\u30e1\u30cb\u30e5\u30fc\u304b\u3089\u547c\u3073\u51fa\u3057\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u540d\u3068\u8868\u793a\u540d\u3001\u914d\u7f6e\u5148\u3068\u8868\u793a\u5148\u3092\u5206\u3051\u3066\u78ba\u8a8d\u3059\u308b\u3068&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div><div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/external-jsx-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/photoshop\/external-jsx\/\">Photoshop\u3067JSX\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3059\u308b\u65b9\u6cd5\uff5c\u53c2\u7167\u30fb\u30e1\u30cb\u30e5\u30fc\u767b\u9332\u30fb\u30a8\u30e9\u30fc\u78ba\u8a8d<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">\u624b\u5143\u306eJSX\u30d5\u30a1\u30a4\u30eb\u30921\u56de\u3060\u3051\u5b9f\u884c\u3059\u308b\u5834\u5408\u306f\u3001Photoshop\u306e\uff3b\u30d5\u30a1\u30a4\u30eb\uff3d\u2192\uff3b\u30b9\u30af\u30ea\u30d7\u30c8\uff3d\u2192\uff3b\u53c2\u7167\uff3d\u304b\u3089\u9078\u3073\u307e\u3059\u3002\u3088\u304f\u4f7f\u3046\u30d5\u30a1\u30a4\u30eb\u306fPresets\/Scripts\u3078\u914d\u7f6e\u3057\u3066\u3001\u30e1\u30cb\u30e5\u30fc&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div><div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/fx-box-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/photoshop\/fx-box\/\">Photoshop\u306e\u30b7\u30fc\u30e0\u30ec\u30b9\u30c6\u30af\u30b9\u30c1\u30e3\u4f5c\u6210\uff5c\u65e7FX BOX\u3068\u73fe\u884cUXP\u7248\u30fb\u7d99\u304e\u76ee\u306e\u78ba\u8a8d<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Photoshop\u3067\u30b7\u30fc\u30e0\u30ec\u30b9\u30c6\u30af\u30b9\u30c1\u30e3\u3092\u4f5c\u308b\u969b\u3001\u65e7FX BOX\u3068\u73fe\u5728\u306eSeamless Texture Generator\u306f\u5c0e\u5165\u65b9\u6cd5\u304c\u7570\u306a\u308a\u307e\u3059\u30022026\u5e7410\u67084\u65e5\u306e\u78ba\u8a8d\u3067\u306f\u3001\u914d\u5e03\u5143\u306f\u5358\u4f53UXP\u30d7\u30e9\u30b0\u30a4\u30f3&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div><div class=\"swell-block-postLink\">\t\t\t<div class=\"p-blogCard -internal\" data-type=\"type1\" data-onclick=\"clickLink\">\n\t\t\t\t<div class=\"p-blogCard__inner\">\n\t\t\t\t\t<span class=\"p-blogCard__caption\">\u3042\u308f\u305b\u3066\u8aad\u307f\u305f\u3044<\/span>\n\t\t\t\t\t<div class=\"p-blogCard__thumb c-postThumb\"><figure class=\"c-postThumb__figure\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/custom-panel-300x169.jpg\" alt=\"\" class=\"c-postThumb__img u-obf-cover\" width=\"320\" height=\"180\"><\/figure><\/div>\t\t\t\t\t<div class=\"p-blogCard__body\">\n\t\t\t\t\t\t<a class=\"p-blogCard__title\" href=\"https:\/\/cg-method.com\/photoshop\/custom-panel\/\">Photoshop\u306eCEP\u30ab\u30b9\u30bf\u30e0\u30d1\u30cd\u30eb\u3092\u4f5c\u308b\u65b9\u6cd5\uff5c\u6700\u5c0f\u69cb\u6210\u30fbJSX\u9023\u643a\u30fb\u8868\u793a\u3055\u308c\u306a\u3044\u539f\u56e0<\/a>\n\t\t\t\t\t\t<span class=\"p-blogCard__excerpt\">Photoshop\u306eCEP\u30ab\u30b9\u30bf\u30e0\u30d1\u30cd\u30eb\u306f\u3001HTML\u306e\u30dc\u30bf\u30f3\u304b\u3089ExtendScript\uff08JSX\uff09\u3092\u547c\u3073\u51fa\u3059\u4ed5\u7d44\u307f\u3067\u3059\u3002\u65e2\u5b58\u306eCEP\u30d1\u30cd\u30eb\u3092\u4fdd\u5b88\u3059\u308b\u4eba\u5411\u3051\u306b\u3001manifest\u30fb\u753b\u9762\u30fbJSX\u3092\u305d\u308d\u3048\u308b\u6700\u5c0f&#8230;<\/span>\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t<\/div>\n\t\t<\/div>\n\n<h2 class=\"wp-block-heading\">\u3088\u304f\u3042\u308b\u8cea\u554f\uff1aPhotoshop\u306eJSX\u306e\u66f8\u304d\u65b9\u3068\u30b3\u30fc\u30c9\u4f8b<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">\u3053\u306e\u8a18\u4e8b\u306e\u30b3\u30fc\u30c9\u306f\u3001\u4f55\u306e\u305f\u3081\u306e\u3082\u306e\u3067\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">Photoshop\u306eExtendScript\uff08.jsx\uff09\u3067\u3001\u6587\u66f8\u306e\u6709\u7121\u3001\u30ec\u30a4\u30e4\u30fc\u306e\u968e\u5c64\u3001\u540d\u524d\u306e\u4e00\u81f4\u3001\u30c6\u30ad\u30b9\u30c8\u578b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u6d88\u3092\u78ba\u8a8d\u3059\u308b\u3001\u77ed\u3044\u30b3\u30fc\u30c9\u4f8b\u3067\u3059\u3002\u30b3\u30d4\u30fc\u3057\u3066\u5168\u90e8\u3092\u9023\u7d50\u3059\u308b\u30b3\u30fc\u30c9\u96c6\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5404\u4f8b\u3092\u5225\u30d5\u30a1\u30a4\u30eb\u3078\u4fdd\u5b58\u3057\u3001\u5909\u66f4\u3059\u308b\u4f8b\u306f\u81ea\u4f5c\u6587\u66f8\u306e\u30b3\u30d4\u30fc\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002UXP\u306e.psjs\u3068\u306fAPI\u304c\u7570\u306a\u308b\u305f\u3081\u3001JSX\u3068PSJS\u306e\u9055\u3044\u3082\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30b3\u30fc\u30c9\u3092\u4f7f\u3046\u524d\u306b\u3001\u4f55\u3092\u78ba\u8a8d\u3057\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u64cd\u4f5c\u3054\u3068\u306b\u3001\u6587\u66f8\u3078\u306e\u5909\u66f4\u306e\u6709\u7121\u304c\u9055\u3044\u307e\u3059\u3002\u6587\u66f8\u540d\u30fb\u30ec\u30a4\u30e4\u30fc\u4e00\u89a7\u306e\u8aad\u307f\u53d6\u308a\u3060\u3051\u306a\u3089\u3001\u80cc\u666f\u89e3\u9664\u30fb\u30e9\u30b9\u30bf\u30e9\u30a4\u30ba\u30fb\u4fdd\u5b58\u306f\u4e0d\u8981\u3067\u3059\u3002\u30ec\u30a4\u30e4\u30fc\u9078\u629e\u306f\u3001\u540c\u3058\u540d\u524d\u304c\u8907\u6570\u3042\u308b\u5834\u5408\u306f\u505c\u6b62\u3057\u3001\u9078\u629e\u72b6\u614b\u306f\u5909\u308f\u308a\u307e\u3059\u304c\u4fdd\u5b58\u306f\u3057\u307e\u305b\u3093\u3002\u80cc\u666f\u89e3\u9664\u30fb\u6587\u5b57\u8272\u306f\u3001\u30ec\u30a4\u30e4\u30fc\u60c5\u5831\u3092\u5909\u66f4\u3059\u308b\u305f\u3081\u3001\u30b3\u30d4\u30fc\u3067\u8a66\u3057\u3001\u78ba\u8a8d\u5f8c\u306f\u5143\u306b\u623b\u3059\u304b\u3001\u4fdd\u5b58\u305b\u305a\u306b\u9589\u3058\u307e\u3059\u3002\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u5834\u5408\u306f\u3001\u53d6\u6d88\u30fb\u5b58\u5728\u30fb\u8aad\u8fbc\u5931\u6557\u3092\u533a\u5225\u3057\u3001\u6587\u66f8\u304c\u5897\u3048\u308b\u305f\u3081\u5bfe\u8c61\u3092\u518d\u78ba\u8a8d\u3057\u307e\u3059\u3002\u524a\u9664\u30fb\u7d71\u5408\u30fb\u66f8\u304d\u51fa\u3057\u306f\u3001\u539f\u672c\u3067\u5b9f\u884c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">try\/catch\u306f\u3001\u7de8\u96c6\u3092\u53d6\u308a\u6d88\u3057\u3066\u304f\u308c\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u3044\u3044\u3048\u3002try\/catch\u306f\u5931\u6557\u3092\u901a\u77e5\u3059\u308b\u4ed5\u7d44\u307f\u3067\u3001\u9014\u4e2d\u306e\u7de8\u96c6\u3092\u53d6\u308a\u6d88\u3059\u6a5f\u80fd\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5373\u6642\u95a2\u6570\u306f\u3001\u5909\u6570\u3092\u95a2\u6570\u5185\u306b\u307e\u3068\u3081\u308b\u66f8\u304d\u65b9\u3067\u3001\u30c9\u30e9\u30c3\u30b0\u5b9f\u884c\u3092\u6709\u52b9\u306b\u3059\u308b\u5fc5\u9808\u306e\u6761\u4ef6\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30ec\u30a4\u30e4\u30fc\u540d\u306f\u3001\u3069\u3046\u8aad\u307f\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">doc.layers\u306f\u3001\u6700\u4e0a\u4f4d\u306eArtLayer\u3068LayerSet\u3092\u542b\u307f\u307e\u3059\u3002\u30b0\u30eb\u30fc\u30d7\u5185\u3092\u8aad\u3080\u5834\u5408\u306f\u3001\u30b0\u30eb\u30fc\u30d7\u540d\u3082\u5148\u306b\u8a18\u9332\u3057\u3066\u3001\u5b50\u30ec\u30a4\u30e4\u30fc\u3078\u9032\u3080\u518d\u5e30\u3067\u8aad\u307f\u307e\u3059\u3002\u51fa\u529b\u9806\u306f\u3053\u306e\u8d70\u67fb\u9806\u3067\u3059\u3002\u968e\u5c64\u30d1\u30b9\u306b\u540c\u540d\u304c\u3042\u308b\u3068\u540c\u3058\u6587\u5b57\u5217\u306b\u306a\u308b\u305f\u3081\u3001\u56fa\u6709ID\u3084\u9078\u629e\u9806\u3092\u8868\u3059\u5024\u306b\u306f\u4f7f\u3044\u307e\u305b\u3093\u3002\u540d\u524d\u3092\u8aad\u3080\u305f\u3081\u306e\u80cc\u666f\u89e3\u9664\u306f\u4e0d\u8981\u3067\u3059\u3002\u65e7\u4f8b\u306b\u306f\u3001\u672b\u5c3e\u306ere\u3068\u9589\u3058\u62ec\u5f27\u306e\u4e0d\u8db3\u304c\u3042\u308a\u3001\u69cb\u6587\u30fb\u5b9f\u884c\u30a8\u30e9\u30fc\u306b\u3064\u306a\u304c\u308b\u305f\u3081\u3001\u65b0\u4f8b\u306b\u306f\u542b\u3081\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u540d\u524d\u3067\u30ec\u30a4\u30e4\u30fc\u3092\u9078\u3076\u3068\u304d\u306e\u6ce8\u610f\u70b9\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u8a18\u4e8b\u306e\u4f8b\u3067\u306f\u3001CGM_target\u3092\u63a2\u3059\u540d\u524d\u306b\u5909\u66f4\u3057\u30010\u4ef6\u307e\u305f\u306f2\u4ef6\u4ee5\u4e0a\u306a\u3089\u9078\u629e\u3057\u307e\u305b\u3093\u3002layers.getByName\u3060\u3051\u3067\u3001\u540c\u540d\u3084\u30b0\u30eb\u30fc\u30d7\u5185\u306e\u5bfe\u8c61\u3092\u4e00\u5f8b\u306b\u9078\u3079\u308b\u3068\u306f\u6271\u308f\u305a\u3001\u7bc4\u56f2\u3068\u4e00\u81f4\u4ef6\u6570\u3092\u660e\u793a\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u80cc\u666f\u30ec\u30a4\u30e4\u30fc\u3084\u3001\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u306e\u8272\u3092\u5909\u3048\u308b\u3068\u304d\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u80cc\u666f\u30ec\u30a4\u30e4\u30fc\u3092\u901a\u5e38\u30ec\u30a4\u30e4\u30fc\u306b\u5909\u3048\u308b\u4f8b\u306f\u7de8\u96c6\u64cd\u4f5c\u3067\u3001\u6700\u80cc\u9762\u306e\u30ec\u30a4\u30e4\u30fc\u3092\u80cc\u666f\u3068\u63a8\u5b9a\u305b\u305a\u3001isBackgroundLayer\u304ctrue\u306eArtLayer\u3060\u3051\u3092\u5909\u66f4\u3057\u307e\u3059\u3002\u80cc\u666f\u304c\u306a\u3044\u5834\u5408\u306f\u3001\u4efb\u610f\u306e\u6700\u80cc\u9762\u30ec\u30a4\u30e4\u30fc\u3092\u5909\u66f4\u3057\u307e\u305b\u3093\u3002\u30c6\u30ad\u30b9\u30c8\u306e\u8272\u3092\u5909\u3048\u308b\u4f8b\u306f\u3001ArtLayer\u304b\u3064LayerKind.TEXT\u3092\u78ba\u8a8d\u3057\u3066\u304b\u3089\u3001\u6587\u5b57\u8272\u3092\u8a2d\u5b9a\u3057\u307e\u3059\u3002\u901a\u5e38\u30ec\u30a4\u30e4\u30fc\u3084\u30b0\u30eb\u30fc\u30d7\u306b\u306f\u3001textItem\u3092\u8aad\u307e\u305b\u307e\u305b\u3093\u3002\u8907\u6570\u306e\u6587\u5b57\u8272\u3092\u6301\u3064\u30c6\u30ad\u30b9\u30c8\u306e\u4fdd\u6301\u306f\u3001\u3053\u306e\u4f8b\u306e\u76ee\u7684\u306b\u542b\u3081\u305a\u3001\u5168\u4f53\u306e\u8272\u3092\u5909\u3048\u308b\u64cd\u4f5c\u3068\u3057\u3066\u30b3\u30d4\u30fc\u3067\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3001\u5b9f\u884c\u4e2d\u306eJSX\u306e\u30d1\u30b9\u3092\u8aad\u3080\u3001\u6587\u5b57\u6570\u3092\u6570\u3048\u308b\u4f8b\u306e\u6ce8\u610f\u70b9\u306f\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3093\u3067\u958b\u304f\u4f8b\u306f\u3001\u5229\u7528\u8005\u304c\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3073\u3001\u53d6\u6d88\u306a\u3089\u7d42\u4e86\u3057\u307e\u3059\u3002\u5b58\u5728\u3057\u3066\u3082\u3001\u5f62\u5f0f\u30fb\u6a29\u9650\u30fb\u7834\u640d\u7b49\u3067\u958b\u3051\u306a\u3044\u5834\u5408\u304c\u3042\u308b\u305f\u3081\u3001\u30a8\u30e9\u30fc\u8868\u793a\u3068\u5b9f\u969b\u306b\u958b\u3044\u305f\u6587\u66f8\u3092\u7167\u5408\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u5b9f\u884c\u4e2d\u306eJSX\u306e\u30d1\u30b9\u306f\u3001$.fileName\u3092File\u3078\u6e21\u3057\u3001OS\u5f62\u5f0f\u306efsName\u3092\u8aad\u307f\u307e\u3059\u3002URI\u8868\u8a18\u3068OS\u30d1\u30b9\u3092\u6df7\u305c\u305f\u308a\u3001\u3059\u3067\u306b\u5fa9\u53f7\u6e08\u307f\u306e\u6587\u5b57\u5217\u3078decodeURI\u3092\u91cd\u306d\u305f\u308a\u3057\u307e\u305b\u3093\u3002\u6587\u5b57\u6570\u3092\u6570\u3048\u308blength\u306f\u3001UTF-16\u30b3\u30fc\u30c9\u5358\u4f4d\u3067\u3001\u7d75\u6587\u5b57\u7b49\u306e\u898b\u305f\u76ee1\u6587\u5b57\u3068\u4e00\u81f4\u3059\u308b\u3068\u306f\u9650\u308a\u307e\u305b\u3093\u3002\u65e7\u4f8b\u306f\u30c6\u30ad\u30b9\u30c8\u30ec\u30a4\u30e4\u30fc\u304b\u3089\u53d6\u5f97\u305b\u305a\u3001\u56fa\u5b9a\u6587\u5b57\u5217\u3092\u51e6\u7406\u3057\u3066\u3044\u305f\u305f\u3081\u3001\u30ec\u30a4\u30e4\u30fc\u306e\u6587\u5b57\u6570\u3092\u81ea\u52d5\u53d6\u5f97\u3059\u308b\u8aac\u660e\u3068\u306f\u533a\u5225\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\uff3b\u53c2\u7167\uff3d\u304b\u3089\u5b9f\u884c\u3057\u305f\u5834\u5408\u3001<code>$.writeln()<\/code> \u306e\u51fa\u529b\u306fPhotoshop\u306e\u753b\u9762\u306b\u51fa\u306a\u3044\u305f\u3081\u3001\u30d1\u30b9\u3092\u898b\u308b\u306b\u306f <code>alert()<\/code> \u3092\u4f7f\u3044\u307e\u3059\uff082026\u5e7410\u670817\u65e5\u306b\u78ba\u8a8d\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">\u65e7\u8a18\u4e8b\u306e25\u30b3\u30fc\u30c9\u306f\u3001\u3069\u3046\u306a\u308a\u307e\u3057\u305f\u304b\uff1f \u5b9f\u6a5f\u3067\u78ba\u8a8d\u3055\u308c\u3066\u3044\u307e\u3059\u304b\uff1f<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e725\u30b3\u30fc\u30c9\u306f\u3001\u5f8c\u534a\u306e\u53c2\u7167\u8cc7\u6599\u306b\u539f\u6587\u3067\u4fdd\u6301\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u672b\u5c3e\u306ere\u3001\u8aad\u53d6\u306e\u524d\u306e\u80cc\u666f\u89e3\u9664\u3001\u56fa\u5b9a\u540d\/\u4fdd\u5b58\u5148\u3001\u578b\u78ba\u8a8d\u306e\u306a\u3044textItem\u3001\u30a8\u30e9\u30fc\u3092false\u306b\u96a0\u3059\u30de\u30b9\u30af\u5224\u5b9a\u306a\u3069\u3092\u542b\u307f\u3001\u65b0\u4f8b\u3078\u6df7\u305c\u3066\u5b9f\u884c\u3057\u306a\u3044\u3067\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u65e7GitHub\u30b3\u30fc\u30c9\u96c6\u306f\u66f4\u65b0\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u65b0\u4f8b\u306e\u3046\u30615\u672c\u306f\u30012026\u5e7410\u670817\u65e5\u306bPhotoshop 2026\uff0827.11.0\uff09\u3068Windows 11 Pro\uff0810.0.26200\uff09\u3067\uff3b\u53c2\u7167\uff3d\u304b\u3089\u5b9f\u884c\u3057\u3001\u8a18\u4e8b\u306e\u8aac\u660e\u3069\u304a\u308a\u306b\u52d5\u304f\u3053\u3068\u3092\u78ba\u304b\u3081\u307e\u3057\u305f\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u4e0a\u4f4d\u306e\u540d\u524d\u3001\u80cc\u666f\u306e\u89e3\u9664\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u9078\u3093\u3067\u958b\u304f\u3001\u6587\u5b57\u5217\u306e\u9577\u3055\u306e4\u672c\u3068\u3001\u65e725\u30b3\u30fc\u30c9\u306f\u5b9f\u884c\u3057\u3066\u3044\u307e\u305b\u3093\u3002<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">\u6700\u65b0\u306fAdobe\u516c\u5f0f\u306eScripting Guide\u306a\u3069\u306e\u8cc7\u6599\u3067\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n","protected":false},"excerpt":{"rendered":"<p>Photoshop\u306eExtendScript\uff08.jsx\uff09\u3067\u3001\u6587\u66f8\u306e\u6709\u7121\u3001\u30ec\u30a4\u30e4\u30fc\u306e\u968e\u5c64\u3001\u540d\u524d\u306e\u4e00\u81f4\u3001\u30c6\u30ad\u30b9\u30c8\u578b\u3001\u30d5\u30a1\u30a4\u30eb\u306e\u53d6\u6d88\u3092\u78ba\u8a8d\u3059\u308b\u77ed\u3044\u30b3\u30fc\u30c9\u4f8b\u3067\u3059\u3002\u30b3\u30d4\u30fc\u3057\u3066\u5168\u90e8\u3092\u9023\u7d50\u3059\u308b\u30b3\u30fc\u30c9\u96c6\u3067\u306f\u3042\u308a\u307e\u305b\u3093\u3002\u5404\u4f8b\u3092\u5225\u30d5\u30a1\u30a4\u30eb\u3078 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":361,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","ssp_meta_description":"Photoshop\u306eJSX\u3067\u6587\u66f8\u306e\u6709\u7121\u3001\u30ec\u30a4\u30e4\u30fc\u968e\u5c64\u3068\u540d\u524d\u3001\u30c6\u30ad\u30b9\u30c8\u578b\u3001\u80cc\u666f\u3001\u30d5\u30a1\u30a4\u30eb\u53d6\u6d88\u3092\u78ba\u8a8d\u3059\u308b\u30b3\u30fc\u30c9\u4f8b\u3002\u8aad\u53d6\u3068\u7de8\u96c6\u3001try\/catch\u3001\u65e7\u30b3\u30fc\u30c9\u306e\u554f\u984c\u3001\u5b9f\u884c\u5165\u53e3\u3092\u6574\u7406\u3057\u307e\u3059\u3002","ssp_meta_title":"Photoshop JSX\u306e\u66f8\u304d\u65b9\u3068\u30b3\u30fc\u30c9\u4f8b\uff5c\u6587\u66f8\u30fb\u30ec\u30a4\u30e4\u30fc\u30fb\u30d5\u30a1\u30a4\u30eb\u30fb\u30a8\u30e9\u30fc\u51e6\u7406","ssp_meta_robots":"","ssp_meta_canonical":"","ssp_meta_image":"","ssp_meta_keyword":"","book_review_data":"","footnotes":""},"categories":[19],"tags":[9],"class_list":["post-359","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-extendscript","tag-free"],"_links":{"self":[{"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/posts\/359","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/comments?post=359"}],"version-history":[{"count":13,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/posts\/359\/revisions"}],"predecessor-version":[{"id":1987,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/posts\/359\/revisions\/1987"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/media\/361"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/media?parent=359"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/categories?post=359"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/tags?post=359"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}