• 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: System Events and Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: System Events and Mail


  • Subject: Re: System Events and Mail
  • From: cricket <email@hidden>
  • Date: Fri, 27 Dec 2002 16:52:38 -0800

On Wednesday, December 25, 2002, at 8:33 PM, Jon Rosen wrote:

I'm trying to use the new System Events, but it seems to fail at the simplest of tasks. The following script:

tell application "System Events"
tell process "Mail"
click menu item "Get New Mail" of menu "Mailbox" of menu bar 1
end tell
end tell

On the off chance that you didn't know this already, you can accomplish this much more easily with this command:

tell app "Mail"
check for new mail
end tell

- cricket

----->
Software Entomologist  Mail for Mac OS X
http://www.apple.com/macosx/jaguar/mail.html
---------->
Standing too soon, shoulders high in the room
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.

References: 
 >System Events and Mail (From: Jon Rosen <email@hidden>)

  • Prev by Date: Re: mail.app - adding contacts manually
  • Next by Date: Re: mail.app - adding contacts manually
  • Previous by thread: System Events and Mail
  • Next by thread: System Events and Mail Redux
  • Index(es):
    • Date
    • Thread