Skip navigation
Currently Being Moderated

How to call a JavaScript in Photoshop?

Jan 12, 2010 11:45 PM


I created 3 simple scripts (converted PS Actions to JavaScript) as a test:   Script1.jsx,  Script2.jsx,  Script3.jsx

How would I go about creating another  JavaScript that runs these three JavaScript consecutively (while in photoshop)
..I can create a simple PS Action of opening the three scripts (which works)..  but  when I convert this back to a Javascript, I receive an error.

My goal is for the ability to create a JavaScript that can call the three scripts.

call Script1.jsx
call Script2.jsx
call Script3.jsx

  Can this be done?

Thanks for any help


  • Currently Being Moderated
    Jan 13, 2010 2:09 AM   in reply to Jeff S GP2

    You could try this...

    var SCRIPTS_FOLDER =  decodeURI(app.path + '/' + localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts"));
    var Script1 = File(SCRIPTS_FOLDER + "/Script1.jsx");
    var Script2 = File(SCRIPTS_FOLDER + "/Script2.jsx");
    var Script3 = File(SCRIPTS_FOLDER + "/Script3.jsx");
    $.evalFile (Script1);
    $.evalFile (Script2);
    $.evalFile (Script3);
    Mark as:
  • Currently Being Moderated
    Jan 14, 2010 1:32 AM   in reply to Jeff S GP2

    Change SCRIPTS_FOLDER to:-

    var SCRIPTS_FOLDER =  "/z/ANIMATION/Max_Renders/FaceLevels/ActionsScripts";

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points