[CS4][AS] Detect problems when opening document
Hi,
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?
Thanks
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