• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mail on El Capitan – Message ID Ref Fails to Compile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.)

tell application "Mail"
   message id 789225 of mailbox "Sent Messages" of account "listmeister" --> FAILS to compile
end tell

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


-- 
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>


 _______________________________________________
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

References: 
 >Mail on El Capitan – Message ID Ref Fails to Compile (From: Christopher Stone <email@hidden>)

  • Prev by Date: Re: Strip substring using do shell script and regex
  • Next by Date: Re: Strip substring using do shell script and regex
  • Previous by thread: Re: Mail on El Capitan – Message ID Ref Fails to Compile
  • Next by thread: Strip substring using do shell script and regex
  • Index(es):
    • Date
    • Thread