Re: UI Printing
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.
|
_______________________________________________
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