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: Stan Cleveland <email@hidden>
- Date: Tue, 02 Oct 2012 18:56:08 -0600
On Oct 2, 2012, at 6:10 PM, Shane Stanley wrote:
> Right. But the question in the original post was why does a whose clause work but a direct reference doesn't.
Hi Shane,
Doh! Guess I didn't read the original post very carefully.
Now that I have, how about this bit of subversive code? Since Mail is clobbering terminology, we need to form the direct reference outside of Mail, where the terminology is unaffected. THEN we let Mail take it from there.
set msgRef to makeMessageRef(204357, "Anna scripting")
tell application "Mail"
set src to source of msgRef
end tell
on makeMessageRef(msgID, boxName)
return «class mssg» id msgID of «class mbxp» boxName of application "Mail"
end makeMessageRef
Stan C.
_______________________________________________
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