Re: Mail on El Capitan – Message ID Ref Fails to Compile
Re: Mail on El Capitan – Message ID Ref Fails to Compile
- Subject: Re: Mail on El Capitan – Message ID Ref Fails to Compile
- From: Shane Stanley <email@hidden>
- Date: Thu, 29 Dec 2016 13:07:18 +1100
On 28 Dec 2016, at 10:36 am, Christopher Stone <email@hidden> wrote:
But the bare reference to a message fails to compile! (The very same reference that appears in the selectedMessageList.)
message id 789225 of mailbox "Sent Messages" of account "listmeister" --> FAILS to compile
I'm assuming this is because of the message id property.
I need to refer to a specific message and copy it at need to my drafts mailbox.
Using a whose clause is not an option.
Is there a way?
It will compile once if you use «class mssg» instead of "message", but you'll have to edit it each time you compile. Alternatively you can do something like this:
set x to a reference to «class mssg» id 789225 of «class mbxp» "Sent Messages" of «class mact» "listmeister" of application "Mail" tell application "Mail" --do something with x, eg ... subject of x end tell
|
_______________________________________________
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