• 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
Mail on El Capitan – Message ID Ref Fails to Compile
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Mail on El Capitan – Message ID Ref Fails to Compile


  • Subject: Mail on El Capitan – Message ID Ref Fails to Compile
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 27 Dec 2016 17:36:02 -0600

Hey Folks,

What the bleep!

This works fine:

-------------------------------------------------------------------------------------------
tell application "Mail"
   set selectedMessageList to selection
   if selectedMessageList ≠ {} then
      set selectedMessage to item 1 of selectedMessageList
   end if
end tell
-------------------------------------------------------------------------------------------

Operating on messages in the selectedMessageList is not a problem.

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?

TIA.

--
Best Regards,
Chris
__________________________________________________________________
{ MacBookPro6,1 · 2.66 GHz Intel Core i7 · 8GB RAM · OSX 10.11.6 }

 _______________________________________________
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

  • Follow-Ups:
    • Re: Mail on El Capitan – Message ID Ref Fails to Compile
      • From: Shane Stanley <email@hidden>
    • Re: Mail on El Capitan – Message ID Ref Fails to Compile
      • From: Yvan KOENIG <email@hidden>
    • Re: Mail on El Capitan – Message ID Ref Fails to Compile
      • From: Brian Christmas <email@hidden>
  • Prev by Date: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [1]
  • Next by Date: Re: Mail on El Capitan – Message ID Ref Fails to Compile
  • Previous by thread: Re: Saving to desktop with TextEdit - El Capitan vs Sierra [2]
  • Next by thread: Re: Mail on El Capitan – Message ID Ref Fails to Compile
  • Index(es):
    • Date
    • Thread