Scripting InDesign CS3 print dialog box
Scripting InDesign CS3 print dialog box
- Subject: Scripting InDesign CS3 print dialog box
- From: Char Thumser <email@hidden>
- Date: Tue, 18 May 2010 16:02:01 -0500
- Thread-topic: Scripting InDesign CS3 print dialog box
Title: Scripting InDesign CS3 print dialog box
I'm having a problem scripting the GUI in InDesign. I am using InDesign CS 3 with 10.5. Below is what PART of my script looks like;
tell application "System Events" to tell process "Adobe InDesign CS3"
click menu item "Print..." of menu of menu bar item "File" of menu bar 1
click pop up button 5 of window "Print" --Print Preset
--Select second printer preset in print dialog box
keystroke (ASCII character 31) -- down arrow key
keystroke (ASCII character 31) -- down arrow key
keystroke return
--Move to second print dialog box
click button "Printer…"
delay 1
--Move to "SAVE" dialog box
click button "Print"
--Give the file a name
keystroke theName
delay 2
--Print to PDF
keystroke return
end tell
When the script gets to the "click button "Printer...", the script actually clicks the "Printer..." button (I can see it change color) however nothing happens. The new "Print" dialog box doesn't open as it should. Is there something I'm missing with this script? I appreciate anyone's help with this. Thank you in advance!!
Char
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden