Re: Help with mail please
Re: Help with mail please
- Subject: Re: Help with mail please
- From: "Mark J. Reed" <email@hidden>
- Date: Thu, 20 Dec 2007 22:38:38 -0500
On Dec 20, 2007 9:35 PM, m <
email@hidden> wrote:
am I correct in assuming ( always a bad idea :-) ) that the internal IDs that mail applies to all the e-mails in Mail are unique?
Yes. Each message has an id that is unique across all folders.
> A side question. Why do you have to specify "first" .....I assume the answer is associated with my first question.
The "whose" construct returns *all* the messages that match the specified criteria as a list. It doesn't know that this particular search (for an id number) will never return more than one message. So what you get back is a list. It happens to be a list of size 1, but it's still a list, and a list doesn't have a "mailbox" property. It's the message contained within the list that has a mailbox, so you have to first extract the message from the list before you can see what mailbox it's in. Kinda like taking a book out of the Amazon box before you can read it. :)
The way you do that is to say "first message of <list>". You could also say "message 1 of <list>", but the first one is more natural.
--
Mark J. Reed <
email@hidden>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden