• 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: Yvan KOENIG <email@hidden>
  • Date: Wed, 28 Dec 2016 10:36:06 +0100


Le 28 déc. 2016 à 00:36, Christopher Stone <email@hidden> a écrit :

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
______


My understanding is that message id has two meanings.

If I run this script :
-------------------------------------------------------------------------------------------
tell application "Mail"
set selectedMessageList to selection
if selectedMessageList ≠ {} then
set selectedMessage to item 1 of selectedMessageList
message id of selectedMessage
end if
end tell
-------------------------------------------------------------------------------------------

The events log display :

tell application "Mail"
get selection
get message id of message id 200567 of mailbox "forum AppleScript US"
end tell

Résultat :

"email@hidden" class="">email@hidden"

I highlighted the two occurrences of "message id" which are clearly different classes of objects.

Yvan KOENIG running Sierra 10.12.2 in French (VALLAURIS, France) mercredi 28 décembre 2016 10:35:48





 _______________________________________________
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: Mail on El Capitan – Message ID Ref Fails to Compile
  • Next by Date: 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: Re: Mail on El Capitan – Message ID Ref Fails to Compile
  • Index(es):
    • Date
    • Thread