• 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
Re: UI Printing
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: UI Printing


  • Subject: Re: UI Printing
  • From: Bill Cheeseman <email@hidden>
  • Date: Fri, 5 Mar 2010 12:10:42 -0500

[Oops, forgot to send to the list again. Does anybody know how I can set up Apple lists or Mail so that replies automatically go back to the list? In Entourage, before I switched to Mail, it was easy.]

On Mar 5, 2010, at 11:38 AM, Luther Fuller wrote:

Does anyone know why I'm having a problem?

Here's how I usually do it. Notice that 'menu 1' comes between the PDF button and the menu item in the hierarchy -- you left it out of your script. The first click opens the menu, which in the Mac OS X menuing system is a prerequisite to finding its menu items. A menu and its menu items don't actually exist until the menu has been opened.

activate application "Mail"
tell application "System Events"
tell process "Mail"
keystroke "p" using {command down}
tell menu button "PDF" of sheet 1 of window 1
click -- opens menu
click menu item "Save as PDF…" of menu 1 -- ellipsis
end tell
end tell
end tell

That will get you the Save panel, where I expect you'll be doing some more scripting. There used to be problems with the accessibility API, and therefore with GUI Scripting, in Save panels. Good luck.

--

Bill Cheeseman
email@hidden



 _______________________________________________
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

References: 
 >Re: UI Printing (From: Stan Cleveland <email@hidden>)
 >Re: UI Printing (From: Vittorio <email@hidden>)
 >Re: UI Printing (From: Bill Cheeseman <email@hidden>)
 >Re: UI Printing (From: Thomas Fischer <email@hidden>)
 >Re: UI Printing (From: Luther Fuller <email@hidden>)
 >Re: UI Printing (From: "Mark J. Reed" <email@hidden>)
 >Re: UI Printing (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: UI Printing
  • Next by Date: Re: UI Printing
  • Previous by thread: Re: UI Printing
  • Next by thread: Re: UI Printing
  • Index(es):
    • Date
    • Thread