• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Tiger broke my Excel->PDF Script
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Tiger broke my Excel->PDF Script
      • From: Paul Berkowitz <email@hidden>
  • Prev by Date: Re: [ann] TextCommands 1.0.0
  • Next by Date: Microsoft Word ... active window problems
  • Previous by thread: Re: Keynote "current slide" not working
  • Next by thread: Re: Tiger broke my Excel->PDF Script
  • Index(es):
    • Date
    • Thread