What do you mean by saying "execute from outside"? Running an InDesign script from another application — e.g. Photoshop, Illustrator, Bridge, etc. Executing it from Finder? Or triggering a JS from AS?
Thanks for your reply Kasyan.
But i don't want to run from finder. I need to run like a ".EXE".
If it is possible in applescript. Send me a sample source code to execute the InDesign script.
tell application "Adobe InDesign CS4"
If you just want to imitate double clicking a file, use execute() method, e.g.:
At the top of your .jsx file type #target indesign to make the script run in InDesign.
And I want to add to what Harbs said in the previous post: when you use do script command, you can also send parameters and get back values. See DoScriptParameters and DoScriptReturnValues sample scripts from InDesign CS3 Guide Scripts for details.