1 Reply Latest reply on Jan 23, 2012 8:10 AM by Michael L Hale

    Script import

    Domaneni Level 1

      Hi,

      I want to ask you if is possible import one script to another and call functions from it??

       

      Thank Domaneni

        • 1. Re: Script import
          Michael L Hale Level 5

          I would recommend using $.evalFile. You can also use //@include. evalFile has the advantage of being able to use cross platform paths. For example from Photomerge.jsx

           

          var g_StackScriptFolderPath = app.path + "/"+ localize("$$$/ScriptingSupport/InstalledScripts=Presets/Scripts") + "/"

           

                                                  + localize("$$$/private/Exposuremerge/StackScriptOnly=Stack Scripts Only/");

           

          $.evalFile(g_StackScriptFolderPath + "LatteUI.jsx");