• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Run the jsx file outside the extensions folder

Explorer ,
Jun 26, 2021 Jun 26, 2021

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");

 

TOPICS
Actions and scripting

Views

702

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe
Guide ,
Jun 26, 2021 Jun 26, 2021

Copy link to clipboard

Copied

 $.evalFile('c:/Color/09.jsx');

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 27, 2021 Jun 27, 2021

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.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jun 27, 2021 Jun 27, 2021

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jun 27, 2021 Jun 27, 2021

Copy link to clipboard

Copied

.jsx connected to extension perhaps may see sestem paths, so include in it some other location.

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jun 27, 2021 Jun 27, 2021

Copy link to clipboard

Copied

LATEST

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. 

JJMack

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines