• 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: Scripting Mail.app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Scripting Mail.app


  • Subject: Re: Scripting Mail.app
  • From: cricket <email@hidden>
  • Date: Sun, 13 Jan 2002 12:05:13 -0800

On Friday, January 11, 2002, at 10:03 PM, applescript-users-
email@hidden wrote:

I have a few questions about scripting OS X's Mail application. Does
anyone know how to accomplish the following from AS:

tell "Mail" to fetch new mail

You can set 'fetch frequency' and 'fetches automatically', but there is currently no command to tell Mail to fetch manually on demand.

tell "Mail" to open its main window when it's closed

No way to do this currently.

tell "Mail" to select the first mailbox that contains unread messages

You could find the first mailbox that contains unread messages, but it would involve iterating over each mailbox, checking each message to see if 'is read' is set to false. By 'selecting', what exactly do you mean? If you mean visually selecting it in the user interface, this is not possible.

- cricket

----->
Software Entomologist/Mail for Mac OS X email@hidden
---------->
When you come to a fork in the road, take it!


  • Follow-Ups:
    • Re: Scripting Mail.app
      • From: Reinhold Penner <email@hidden>
  • Prev by Date: Re: Need rope for SOAP
  • Next by Date: Re: Scripting Mail.app
  • Previous by thread: Scripting Mail.app
  • Next by thread: Re: Scripting Mail.app
  • Index(es):
    • Date
    • Thread