Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

eleven7

macrumors regular
Original poster
Mar 14, 2009
195
0
Japan
Just trying to write a short bit of Applescript to open the "Print to pdf" dialog in Pages 09. Sounds easy enough but the Print window is not a separate window, it's incorporated into the main window, so I can't tell the script where the PDF button is located.

PHP:
		keystroke "p" using command down
		
		# Do some loop to wait for print "window" to appear.
		
		click menu button "PDF" of window "????"

Does the print window have a name? Is it even a window? Thanks!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.