• 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 04:54:03 -0500


On Mar 5, 2010, at 4:17 AM, Vittorio wrote:

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?

activate application "Mail"
tell application "System Events"
tell process "Mail"
keystroke "p" using {command down}
click button 1 of sheet 1 of window 1
end tell
end tell

Notice that I've used an alternative way to choose the Print menu item.


--

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

  • Follow-Ups:
    • Re: UI Printing
      • From: Thomas Fischer <email@hidden>
References: 
 >Re: UI Printing (From: Stan Cleveland <email@hidden>)
 >Re: UI Printing (From: Vittorio <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