Overview Version History Q & A Rating & Review
vscode-to-photoshop2 README
This extension is a fork of vscode-to-photoshop
// 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
// 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