• 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: 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


  • Follow-Ups:
    • Re: Scripting Mail.app
      • From: "J.B. Stewart" <email@hidden>
References: 
 >Re: Scripting Mail.app (From: "J.B. Stewart" <email@hidden>)

  • Prev by Date: Re: Save a text file
  • Next by Date: Re: solutions to scripting addition terminology conflicts
  • Previous by thread: Re: Scripting Mail.app
  • Next by thread: Re: Scripting Mail.app
  • Index(es):
    • Date
    • Thread