Tiger broke my Excel->PDF Script
Tiger broke my Excel->PDF Script
- Subject: Tiger broke my Excel->PDF Script
- From: Larry McMunn <email@hidden>
- Date: Tue, 22 Nov 2005 18:01:43 -0500
Many months ago thanks to several of you on the
list, I developed a script to build PDFs
combining pages from different applications. It
relied on this great little nugget:
------------------------
tell application "Excel_2004" to activate
tell application "System Events"
tell application process "Excel_2004"
keystroke "p" using command down
set saveAsButton to (a reference to button
"Save As PDF" of UI element 4 of window "Print")
repeat until exists saveAsButton -- loop
until the referenced element appears
delay 0.1
end repeat
click saveAsButton
set saveButton to (a reference to button "Save" of window "Save To File")
repeat until exists saveButton -- loop
until the referenced element appears
delay 0.1
end repeat
keystroke "d" using command down -- to save to desktop
keystroke pdfName
click saveButton
end tell
end tell
end tell
------------------------
The "Save As PDF" button is now "PDF" and has a
pop up menu with multiple items.
Anyone have any ideas on how to do this in Tiger?
--
Happy Automation! :-)
Larry McMunn
President
McMunn Associates, Inc.
Collingswood, NJ
Seminole, FL
Main Office: (856) 858-3440
Mobile: (856) 261-7018
FAX: (856) 869-5936
---------------------------------------------------------------
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden