Re: Referencing a Message in Mail 6.1 - Huh?
Re: Referencing a Message in Mail 6.1 - Huh?
- Subject: Re: Referencing a Message in Mail 6.1 - Huh?
- From: Ron Hunsinger <email@hidden>
- Date: Tue, 02 Oct 2012 15:08:13 -0700
On Oct 2, 2012, at 5:47 AM, Shane Stanley <email@hidden> wrote:
> I suspect the problem is that message ids are not sufficient in themselves to identify messages; the containing mailbox is also required. That's being handled correctly in a whose clause, but it won't work in an id reference form.
No. The problem is that Mail's dictionary defines "message id" as a property of a message. Something as simple as
tell application "Mail"
get source of message id 1
end tell
parses "message id" as a single token, and then doesn't know what to do with the following number. You get a syntax error. It doesn't matter whether there is a message whose id is 1, nor whether Mail can locate the message by just its id, because the syntax error prevents the script from ever running.
-Ron Hunsinger
_______________________________________________
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