Re: Lion's Mail & Headers
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