4 Replies Latest reply on Dec 3, 2008 2:23 PM by (Olav_Kvern)

    call JavaScript from AppleScript using InDesign CS2

      Can this be done?

      The following script:

      tell application "Adobe InDesign CS2"
      tell active document
      do script "var thisNumber = 5;" language javascript
      end tell
      end tell

      results in the error:

      tell application "Adobe InDesign CS2"
      do script "var thisNumber = 5;" language javascript
      "Adobe InDesign CS2 got an error: \"var thisNumber = 5;\" doesnt understand the do script message."

      Why doesn't this work and what can I do to fix it?

      William