{"id":548,"date":"2025-03-21T21:31:12","date_gmt":"2025-03-21T12:31:12","guid":{"rendered":"https:\/\/cg-method.com\/photoshop\/?p=548"},"modified":"2025-05-31T18:56:56","modified_gmt":"2025-05-31T09:56:56","slug":"visual-studio-code","status":"publish","type":"post","link":"https:\/\/cg-method.com\/photoshop\/visual-studio-code\/","title":{"rendered":"ExtendScript\u2502Visual Studio Code\u3067\u306e\u958b\u767a\u74b0\u5883\u69cb\u7bc9\u30ac\u30a4\u30c9\u2502ExtendScript Debugger"},"content":{"rendered":"\n<p>Adobe\u306e<strong>ExtendScript Toolkit\uff08ESTK\uff09\u306f\u3059\u3067\u306b\u958b\u767a\u7d42\u4e86\u3057\u3066\u304a\u308a\u3001\u4eca\u5f8c\u306fVisual Studio Code\uff08VSCode\uff09\u3068ExtendScript Debugger\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u7d44\u307f\u5408\u308f\u305b<\/strong>\u304c\u63a8\u5968\u3055\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001<strong>Photoshop\u306a\u3069\u306eAdobe\u88fd\u54c1\u3067\u30b9\u30af\u30ea\u30d7\u30c8\u958b\u767a\u3092\u884c\u3046\u305f\u3081\u306eVSCode\u74b0\u5883\u69cb\u7bc9\u624b\u9806<\/strong>\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step1\uff1aVisual Studio Code \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3068\u57fa\u672c\u8a2d\u5b9a<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. Visual Studio Code\u306e\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\u6700\u65b0\u7248\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<p>\u25b6 <a href=\"https:\/\/code.visualstudio.com\/\">Visual Studio Code \u516c\u5f0f\u30b5\u30a4\u30c8<\/a><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u65e5\u672c\u8a9e\u5316\uff08Japanese Language Pack\u306e\u5c0e\u5165\uff09<\/h3>\n\n\n\n<ol class=\"wp-block-list\">\n<li>\u5de6\u30b5\u30a4\u30c9\u30d0\u30fc\u306e\u56db\u89d2\u30a2\u30a4\u30b3\u30f3\u300c\u62e1\u5f35\u6a5f\u80fd\uff08Extensions\uff09\u300d\u3092\u30af\u30ea\u30c3\u30af<\/li>\n\n\n\n<li>\u691c\u7d22\u30d0\u30fc\u306b\u300c<strong>Japanese Language Pack for Visual Studio Code<\/strong>\u300d\u3068\u5165\u529b<\/li>\n\n\n\n<li>\u8a72\u5f53\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">3. ExtendScript Debugger\u306e\u5c0e\u5165<\/h3>\n\n\n\n<p>\u540c\u3058\u304f\u62e1\u5f35\u6a5f\u80fd\u30d1\u30cd\u30eb\u3067\u4ee5\u4e0b\u306e\u30d7\u30e9\u30b0\u30a4\u30f3\u3092\u691c\u7d22\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<p>\ud83d\udd0d <code>ExtendScript Debugger<\/code><br>\u958b\u767a\u5143\uff1aAdobe Systems Inc.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Step2\uff1aExtendScript\u306e\u30c7\u30d0\u30c3\u30b0\u8a2d\u5b9a\uff08launch.json\uff09<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u4f5c\u696d\u7528\u30d5\u30a9\u30eb\u30c0\u3092\u4f5c\u6210<\/h3>\n\n\n\n<p>\u4f8b\uff1a<code>vscode-project<\/code> \u306a\u3069<\/p>\n\n\n\n<p>VSCode\u3067\u3053\u306e\u30d5\u30a9\u30eb\u30c0\u3092\u958b\u304d\u307e\u3059\uff08\u30c9\u30e9\u30c3\u30b0\uff06\u30c9\u30ed\u30c3\u30d7\u3067\u3082OK\uff09\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u30c7\u30d0\u30c3\u30b0\u8a2d\u5b9a\u3092\u958b\u59cb<\/h3>\n\n\n\n<p>\u5de6\u306e\u300c\u30c7\u30d0\u30c3\u30b0\u300d\u30a2\u30a4\u30b3\u30f3\uff08\u866b\u306e\u30de\u30fc\u30af\uff09\u3092\u30af\u30ea\u30c3\u30af \u2192 \u6b6f\u8eca\u30a2\u30a4\u30b3\u30f3\u3092\u9078\u629e<br>\u30c7\u30d0\u30c3\u30ac\u3068\u3057\u3066 <strong>\u300cExtendScript Debugger\u300d<\/strong> \u3092\u9078\u629e\u3059\u308b\u3068\u3001<code>launch.json<\/code> \u304c\u81ea\u52d5\u751f\u6210\u3055\u308c\u307e\u3059\u3002<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"352\" height=\"339\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/Screenshot_2019_0519_11.jpg\" alt=\"\" class=\"wp-image-549\" srcset=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/Screenshot_2019_0519_11.jpg 352w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/Screenshot_2019_0519_11-300x289.jpg 300w\" sizes=\"auto, (max-width: 352px) 100vw, 352px\" \/><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\">3. <code>launch.json<\/code> \u306e\u7de8\u96c6<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>{\n  &quot;version&quot;: &quot;0.2.0&quot;,\n  &quot;configurations&quot;: [\n    {\n      &quot;type&quot;: &quot;extendscript&quot;,\n      &quot;request&quot;: &quot;launch&quot;,\n      &quot;name&quot;: &quot;Run current script&quot;,\n      &quot;program&quot;: &quot;${file}&quot;  \/\/ \u73fe\u5728\u958b\u3044\u3066\u3044\u308b\u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u5b9f\u884c\u5bfe\u8c61\u306b\n    }\n  ]\n}<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">Step3\uff1a\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u5b9f\u884c\u3057\u3066\u307f\u308b\uff08Photoshop\u3092\u5bfe\u8c61\uff09<\/h2>\n\n\n\n<h3 class=\"wp-block-heading\">1. \u30b5\u30f3\u30d7\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u4f5c\u6210<\/h3>\n\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    alert(&quot;\u6210\u529f\uff01&quot;);\n  } catch (e) {\n    alert(&quot;\u5931\u6557\uff01&quot;);\n  }\n}\ntest();<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">2. \u30bf\u30fc\u30b2\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u306e\u9078\u629e<\/h3>\n\n\n\n<p>\u4e0a\u90e8\u30e1\u30cb\u30e5\u30fc \u2192 \u300c\u8868\u793a\u300d\u2192\u300c\u30b3\u30de\u30f3\u30c9\u30d1\u30ec\u30c3\u30c8\u300d<br><code>\u30bf\u30fc\u30b2\u30c3\u30c8\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3092\u9078\u629e<\/code> \u3092\u691c\u7d22\u3057\u3001<strong>Photoshop<\/strong> \u3092\u9078\u629e<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">3. \u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c<\/h3>\n\n\n\n<p>\u5de6\u5074\u306e\u30c7\u30d0\u30c3\u30b0\u30d1\u30cd\u30eb\u304b\u3089\u300c\u25b6\u300d\u5b9f\u884c\u30dc\u30bf\u30f3\u3092\u30af\u30ea\u30c3\u30af<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"604\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/002-1024x604.jpg\" alt=\"\" class=\"wp-image-552\" srcset=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/002-1024x604.jpg 1024w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/002-300x177.jpg 300w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/002-768x453.jpg 768w, https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/002.jpg 1293w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>Photoshop\u4e0a\u3067\u300c\u6210\u529f\uff01\u300d\u3068\u3044\u3046\u30c0\u30a4\u30a2\u30ed\u30b0\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u63a5\u7d9a\u6210\u529f\u3067\u3059\uff01<\/p>\n\n\n\n<figure class=\"wp-block-image size-full is-style-border\"><img loading=\"lazy\" decoding=\"async\" width=\"268\" height=\"255\" src=\"https:\/\/cg-method.com\/photoshop\/wp-content\/uploads\/2025\/03\/Screenshot_2019_0519_15.jpg\" alt=\"\" class=\"wp-image-551\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">\u304a\u307e\u3051\uff1aTypeScript\u3067\u306eExtendScript\u958b\u767a\uff08\u9014\u4e2d\u307e\u3067\uff09<\/h2>\n\n\n\n<p>\u4eca\u5f8cTypeScript\u3092\u4f7f\u3063\u3066\u958b\u767a\u3059\u308b\u3053\u3068\u3082\u53ef\u80fd\u3067\u3059\u3002\u4ee5\u4e0b\u306f\u305d\u306e\u521d\u671f\u8a2d\u5b9a\u624b\u9806\u306e\u30e1\u30e2\u3067\u3059\u3002<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">1. Node.js \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\uff08\u516c\u5f0f\u30b5\u30a4\u30c8\u304b\u3089\uff09<\/h3>\n\n\n<div class=\"swell-block-postLink\">\t\t\t<a href=\"https:\/\/nodejs.org\/\" class=\"c-blogLink -external\" data-style=\"text\" target=\"_blank\" rel=\"noopener noreferrer\">\n\t\t\t\t<!-- <i class=\"c-blogLink__icon icon-link\" role=\"presentation\"><\/i> -->\n\t\t\t\t<span class=\"c-blogLink__icon\">\n\t\t\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"swl-svg-externalLink __svg\" width=\"1em\" height=\"1em\" viewBox=\"0 0 48 48\" role=\"img\" aria-hidden=\"true\" focusable=\"false\"><path d=\"M44 2H30c-1.1 0-2 .9-2 2s.9 2 2 2h9.2L24 21.2c-.8.8-.8 2 0 2.8s2 .8 2.8 0L42 8.8V18c0 1.1.9 2 2 2s2-.9 2-2V4c0-1.1-.9-2-2-2z\" \/><path d=\"M41 27c-1.1 0-2 .9-2 2v10c0 1.1-.9 2-2 2H9c-1.1 0-2-.9-2-2V11c0-1.1.9-2 2-2h10c1.1 0 2-.9 2-2s-.9-2-2-2H9c-3.3 0-6 2.7-6 6v28c0 3.3 2.7 6 6 6h28c3.3 0 6-2.7 6-6V29c0-1.1-.9-2-2-2z\" \/><\/svg>\t\t\t\t<\/span>\n\t\t\t\t<span class=\"c-blogLink__text\">Node.js \u2014 Run JavaScript Everywhere<\/span>\n\t\t\t<\/a>\n\t\t<\/div>\n\n\n<h3 class=\"wp-block-heading\">2. PowerShell\u3067\u30d1\u30c3\u30b1\u30fc\u30b8\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code># \u521d\u671f\u5316\nnpm init -y\n\n# TypeScript\u306e\u5c0e\u5165\nnpm install -D typescript\n\n# Adobe\u7528\u306e\u578b\u5b9a\u7fa9\u30d5\u30a1\u30a4\u30eb\uff08\u5916\u90e8\u30ea\u30dd\u30b8\u30c8\u30ea\uff09\nnpm install -D ten-A\/types-for-adobe\n\n# tsconfig.json \u3092\u4f5c\u6210\n.\/node_modules\/.bin\/tsc --init\n<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">3. <code>tsconfig.json<\/code>\uff08\u4f8b\uff09<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-json\" data-lang=\"JSON\"><code>{\n  &quot;compilerOptions&quot;: {\n    &quot;target&quot;: &quot;es3&quot;,\n    &quot;module&quot;: &quot;commonjs&quot;,\n    &quot;strict&quot;: true,\n    &quot;noLib&quot;: true\n  },\n  &quot;exclude&quot;: [&quot;node_modules&quot;]\n}<\/code><\/pre><\/div>\n\n\n\n<h3 class=\"wp-block-heading\">4. TypeScript\u306e\u30d3\u30eb\u30c9\u30b3\u30de\u30f3\u30c9<\/h3>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-plain\"><code>.\/node_modules\/.bin\/tsc sample.ts\n.\/node_modules\/.bin\/tsc -w sample.ts<\/code><\/pre><\/div>\n\n\n\n<h2 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>ExtendScript Toolkit\u306f\u975e\u63a8\u5968\u3001\u4eca\u5f8c\u306f<strong>VSCode + ExtendScript Debugger<\/strong>\u304c\u4e3b\u6d41<\/li>\n\n\n\n<li>launch.json\u3092\u8a2d\u5b9a\u3059\u308b\u3053\u3068\u3067\u3001<strong>Adobe\u30a2\u30d7\u30ea\u3078\u76f4\u63a5\u30c7\u30d0\u30c3\u30b0\u5b9f\u884c\u53ef\u80fd<\/strong><\/li>\n\n\n\n<li>TypeScript\u74b0\u5883\u3082\u6574\u3048\u308b\u3068\u3001\u578b\u88dc\u5b8c\u3084\u69cb\u6587\u30c1\u30a7\u30c3\u30af\u304c\u5f37\u5316\u3055\u308c\u3066\u4fbf\u5229\uff01<\/li>\n<\/ul>\n\n\n\n\n","protected":false},"excerpt":{"rendered":"<p>Adobe\u306eExtendScript Toolkit\uff08ESTK\uff09\u306f\u3059\u3067\u306b\u958b\u767a\u7d42\u4e86\u3057\u3066\u304a\u308a\u3001\u4eca\u5f8c\u306fVisual Studio Code\uff08VSCode\uff09\u3068ExtendScript Debugger\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u7d44\u307f\u5408\u308f\u305b\u304c\u63a8\u5968 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":553,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"swell_btn_cv_data":"","footnotes":""},"categories":[19],"tags":[9],"class_list":["post-548","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\/548","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=548"}],"version-history":[{"count":2,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/posts\/548\/revisions"}],"predecessor-version":[{"id":607,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/posts\/548\/revisions\/607"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/media\/553"}],"wp:attachment":[{"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/media?parent=548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/categories?post=548"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cg-method.com\/photoshop\/wp-json\/wp\/v2\/tags?post=548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}