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: Deivy Petrescu <email@hidden>
- Date: Wed, 03 Oct 2012 20:00:51 -0400
On Oct 1, 2012, at 20:56 , Christopher Stone <email@hidden> wrote:
> Hey Folks,
>
> I can scriptomatically acquire a reference to a message in the form shown below and use it later in the script, BUT if I simply paste the reference into a script it won't compile.
>
> tell application "Mail"
> message id 392140 of mailbox "INBOX" of account "test" of application "Mail"
> end tell
>
> WTH?
>
> Shouldn't I be able to reference it directly and do something like:
>
> tell application "Mail"
> tell message id 392140 of mailbox "INBOX" of account "test" of application "Mail"
> get its source
> end tell
> end tell
>
> I know I can work around this by doing:
>
> tell application "Mail"
> tell item 1 of (messages of mailbox "INBOX" of account "junksieve" whose id is 392140)
> get its source
> end tell
> end tell
>
> But that seems ridiculous.
>
> Thanks.
>
> --
> Best Regards,
> Chris
>
Chris, message id is a property.
It is kind of weird to think of it as a property but it is.
Think of this script
tell application "Mail"
tell subject "Referencing a Message in Mail 6.1 - Huh?" of mailbox "INBOX" of account "test" of application "Mail"
get its source
end tell
end tell
It doesn't make sense does it?
message id is a unique identifier, but a property nevertheless.
Deivy Petrescu
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