• 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: Selecting mail message by ID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Selecting mail message by ID


  • Subject: Re: Selecting mail message by ID
  • From: "John M, John" <email@hidden>
  • Date: Thu, 14 Apr 2005 10:40:40 +0100

Hi Malcolm,

This opens the first email with the ID in mailboxes. It doesn't look in the InBox for some reason.

--
set messageID to "BE7F0A4A.36065%email@hidden" -- change this
tell application "Mail"
	repeat with mb in mailboxes -- not Iin nBox for some reason
		repeat with m in messages of mailbox (name of mb)
			if message id of m is messageID then
				open m
				--you could get info about the message here
				exit repeat
			end if
		end repeat
		if message id of m is messageID then exit repeat
	end repeat
end tell
--

Best wishes

John M

_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Prev by Date: Re: illustrator 10 text color change
  • Next by Date: Re: Rounding off in AppleScript
  • Previous by thread: Selecting mail message by ID
  • Next by thread: Re: Re: Selecting mail message by ID
  • Index(es):
    • Date
    • Thread