Re: Scripting Mail.app
Re: Scripting Mail.app
- Subject: Re: Scripting Mail.app
- From: Reinhold Penner <email@hidden>
- Date: Mon, 21 Jan 2002 19:54:51 -1000
John,
>
Yes that works here too but I wasn't trying to get the content, I was
>
trying to
>
open the original email itself. The project is an email reader that
>
finds and
>
opens unread email.
I had a similar project and asked the same question. This is what
Cricket, who is on the Mail.app development team, had to say:
>
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
So it isn't currently possible to do what you and I want to do. But it's
good you asked, since that makes two of us and surely two requests will
move this feature request to the very top of the priority list :-)
-Reinhold