Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-to-photoshop2-with-real-pathNew to Visual Studio Code? Get it now.
vscode-to-photoshop2-with-real-path

vscode-to-photoshop2-with-real-path

edwardfxiao

|
41 installs
| (0) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscode-to-photoshop2 README

This extension is a fork of vscode-to-photoshop

To get the actual javascript file path:

vscode-to-photoshop: (Not possible)

// my-photoshop-javascript.js on macOS

var currentScriptFile = new File($.fileName);
alert(currentScriptFile.toString()); // ~/.vscode/extensions/bialikover.vscode-to-photoshop-0.0.3/out/src/tmp_file.jsx

vscode-to-photoshop2:

// my-photoshop-javascript.js on macOS

var JSON = {
  parse: function (str) {
      return eval('(' + str + ')');
    }
  };
}
var actualFilename = "";
try {
  var option = JSON.parse(arguments[0]);
  actualFilename = option.filename;
}
catch(e){}
alert(actualFilename); // ~/my-actual-file-path/my-actual-file.jsx

What this new extension does is to provide a additianal filename param of actual file path as this issue states states.

Usage

  • Install the extension from the market place.
  • Press cmd + shift + p to open the command palete
  • type in: extend script and use Extend Script: Evaluate2
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft