Wednesday, August 31, 2011

How to run JS in ESTK with Command line



1.
"C:\Program Files\Adobe\Adobe Utilities\ExtendScript Toolkit\ExtendScript Toolkit.exe" -run "C:\Program Files\Adobe\Adobe InDesign CS2\Presets\Scripts\test.jsx"

2.Add the line #target indesign to the top of your script otherwise ESTK will open without executing the script. Example:

#target indesign

If a script is compiled to a .jsxbin file, the #target directive is ignored. Double-clicking a .jsxbinfile does not execute the script in the application that the


3. Adobe Scripts Folder

On first launch, the ESTK creates a folder named Adobe Scripts in the user's Documents folder. This is the folder whose contents the Default favorite in the Scripts panel displays.

When double-clicking a JSX file, the ESTK normally acts as an invisible security filter. Before actually launching the file, a security dialog pops up asking if it is OK to execute the script. The ESTK treats the user's Documents/Adobe Scripts folder as a trusted location. When you double-click a JSX file in that folder, the Toolkit does not display the security alert.
#target directive defines.

No comments:

Post a Comment