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

Script import

New Here ,
Jan 23, 2012 Jan 23, 2012

Hi,

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

Thank Domaneni

TOPICS
Actions and scripting
530
Translate
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

correct answers 1 Correct answer

Mentor , Jan 23, 2012 Jan 23, 2012

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

Translate
Adobe
Mentor ,
Jan 23, 2012 Jan 23, 2012
LATEST

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

Translate
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