• 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: Vittorio <email@hidden>
  • Date: Fri, 5 Mar 2010 10:17:03 +0100

Yes, it works BUT ... I'm presented with the print menu with the Print button highlighted and waiting for action. What should I add for making this script print the message automagically?

Ciao from Rome, Vittorio

Il giorno 05/mar/2010, alle ore 02.50, Stan Cleveland ha scritto:

On 3/4/10 5:41 PM, "Stockly, Ed" wrote:

This works for me.

--(Written using PreFab’s UI Browswer)
tell
application "Mail"
    
activate
    
tell application "System Events"
        
click menu item "Print…" of menu 1 of menu bar item "File" of menu bar 1 of application process "Mail"
    
end tell
end
tell


Hi Luther,

LuKreme is right about the ellipsis and Ed is right about Mail needing to be the frontmost app.

Here’s another way to get there:

tell application "System Events"
   tell process "Mail"
       set frontmost to true
       click menu item "Print…" of menu "File" of menu bar item "File" of menu bar 1
   end tell
end
tell

Stan C.
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
  • Follow-Ups:
    • Re: UI Printing
      • From: Bill Cheeseman <email@hidden>
References: 
 >Re: UI Printing (From: Stan Cleveland <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