4 Replies Latest reply on Mar 25, 2010 9:34 AM by JohnDevlon

    [CS4][AS] Detect problems when opening document

    JohnDevlon Level 1


      Can anyone please help me?


      I'm trying to write a applescript that opens a indesign file, prints the document, and closes the file again.


      Everything works fine but when a file is opend, and there are some missing plugings, assignments, fonts, images, .... the script stops.


      How can I  detect if a error appears when opening a file? The file then has to be ignored...


      How can I detect if anything is missing before printing the file?




      the script:


      tell application "Adobe InDesign CS4"

      set myDocument to open inInputFile

      print active document using "HighresPreset" without print dialog

      close active document saving no

      end tell