Skip to main content
Participant
May 25, 2009
Question

Basic launching of an Applescript

  • May 25, 2009
  • 1 reply
  • 512 views

My first try with InDesign and one of the first with AppleScript.

It seems like ID is not receiving the AppleScript messages. Even a simple script like

tell application "Adobe InDesign CS3"
    activate
    quit
end tell

Does not work. I get a Sintax error: "The application is not open". But of course it is!!

I need to run my scripts from outside ID, so I am doing my tests using Apple's Script Editor.

The example was recorded with the Script Editor, so the name of the application "Adobe InDesign CS3" is not misspelled.

Do I have to activate something on ID, or in the Finder to make the scripts run?

Thank

This topic has been closed for replies.

1 reply

Inspiring
May 25, 2009

No, you don't need to do anything else. Could it be that the script ran, which would quit InDesign, and then you tied to run it again, at which point InDesign was no longer running?

Try a script without quit in it -- get the name, for example, or "make document". Does that work? If not, try a simple Finder script, to see if the probelm is confined to InDesign.