• 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: Help with mail please
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help with mail please


  • Subject: Re: Help with mail please
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 20 Dec 2007 18:56:49 -0700

On Dec 20, 2007, at 4:59 PM, m wrote:

Problem.  Given an e-mail ( eg 416.emlx), I want to extract the name of the mailBox that it is contained within.

tell application "Mail"
set mymsg to message {id, 425}  - - Error..Mail cannot get message
end tell

Try this:

tell application "Mail"
tell message viewer 1
first message whose id is 778223
end tell
end tell

So the entire script to get the name of the mailbox of the message is

tell application "Mail"
tell message viewer 1
set mailbox_name to the name of mailbox of the first message whose id is 778223
end tell
end tell

-- 
A great Idea!  That's what we need--a great idea.
 --Pesudolous, (A Funny Thing Happened on the way to the forum)

 _______________________________________________
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: Help with mail please
      • From: m <email@hidden>
References: 
 >Help with mail please (From: m <email@hidden>)

  • Prev by Date: Re: Help with mail please
  • Next by Date: Re: Help with mail please
  • Previous by thread: Re: Help with mail please
  • Next by thread: Re: Help with mail please
  • Index(es):
    • Date
    • Thread