Copy link to clipboard
Copied
$.evalFile(File($.fileName).parent.fsName + "/Color/09.jsx");
If I use the above code to run the jsx file in the extension folder, it will run, but now when I want to click the button, I run the jsx file outside the extension folder. please ask how to run jsx file like that. thank you
Edit
$.evalFile(File($.fileName).parent.fsName + "c:/Color/09.jsx");
Copy link to clipboard
Copied
$.evalFile('c:/Color/09.jsx');
Copy link to clipboard
Copied
If you do it by extension it may not be able to use the paths from outside of its container.
Copy link to clipboard
Copied
Since I want to keep the jsx file secure, don't want it to be in the folder extension, is there any way to run the jsx file outside the folder extension, the above answer I did before opening the question here , but it failed
Copy link to clipboard
Copied
.jsx connected to extension perhaps may see sestem paths, so include in it some other location.
Copy link to clipboard
Copied
As far as I know there is no way you can keep your script secure and be runnable. To be runnable the script code must be processed by Photoshop's scriptingsupport plug-in which so code need to be read by the plug-in from a plan text files with a .js or.,jsx extension or an encoded file jsxbin which can be decoded into the plain text. You can not keep your code away from prying eyes.