• 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: Lion's Mail & Headers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lion's Mail & Headers


  • Subject: Re: Lion's Mail & Headers
  • From: Christopher Stone <email@hidden>
  • Date: Tue, 26 Jul 2011 14:35:44 -0500

On Jul 26, 2011, at 14:00, Michelle Steiner wrote:

This works, though:

tell application "Mail"
set foo to item 1 of (get the selection)
set bar to (get header 1 of foo)
end tell

-->header "return-path" of message id 209986 of mailbox "Applescript" of application "Mail"

And this, of course:

tell application "Mail"
set foo to item 1 of (get the selection)
set bar to (get headers of foo)
end tell
______________________________________________________________________

Hey Michelle,

Thanks.  Now I can file a bug with confidence.

This craps out:

tell application "Mail"
set msg to item 1 of (get selection)
set {hName, hContent} to {name, content} of header 1 of msg
end tell

This works:

tell application "Mail"
set msg to item 1 of (get selection)
set hList to headers of msg
end tell

Unfortunately you can't do anything with it, because you can't get any values.

This too fails:

tell application "Mail"
set msg to item 1 of (get selection)
set hList to headers of msg whose name is "Date"
end tell

I'm not overly thrilled at having to parse the source to do something I've easily done otherwise for years.

--
Best Regards,
Chris

 _______________________________________________
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: 
 >Lion's Mail & Headers (From: Christopher Stone <email@hidden>)
 >Re: Lion's Mail & Headers (From: Michelle Steiner <email@hidden>)

  • Prev by Date: Re: Lion's Mail & Headers
  • Next by Date: Re: Lion's Mail & Headers
  • Previous by thread: Re: Lion's Mail & Headers
  • Next by thread: Re: Lion's Mail & Headers
  • Index(es):
    • Date
    • Thread