Re: Scripting Mail.app
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!