• 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: Referencing a Message in Mail 6.1 - Huh?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Referencing a Message in Mail 6.1 - Huh?
      • From: Shane Stanley <email@hidden>
    • Re: Referencing a Message in Mail 6.1 - Huh?
      • From: Christopher Stone <email@hidden>
References: 
 >Referencing a Message in Mail 6.1 - Huh? (From: Christopher Stone <email@hidden>)
 >Re: Referencing a Message in Mail 6.1 - Huh? (From: Axel Luttgens <email@hidden>)
 >Re: Referencing a Message in Mail 6.1 - Huh? (From: Shane Stanley <email@hidden>)
 >Re: Referencing a Message in Mail 6.1 - Huh? (From: Ron Hunsinger <email@hidden>)
 >Re: Referencing a Message in Mail 6.1 - Huh? (From: Shane Stanley <email@hidden>)
 >Re: Referencing a Message in Mail 6.1 - Huh? (From: Stan Cleveland <email@hidden>)
 >Re: Referencing a Message in Mail 6.1 - Huh? (From: Shane Stanley <email@hidden>)

  • Prev by Date: Re: Referencing a Message in Mail 6.1 - Huh?
  • Next by Date: Re: regex in Satimage OSAX doesn't work the way I expected
  • Previous by thread: Re: Referencing a Message in Mail 6.1 - Huh?
  • Next by thread: Re: Referencing a Message in Mail 6.1 - Huh?
  • Index(es):
    • Date
    • Thread