Re: Lion's Mail & Headers
Re: Lion's Mail & Headers
- Subject: Re: Lion's Mail & Headers
- From: Michelle Steiner <email@hidden>
- Date: Tue, 26 Jul 2011 12:00:36 -0700
Hey there, on Tue Jul 26 11:29:30 2011, Christopher Stone wrote the following interesting missive:
> Can someone confirm for me that 'headers' are broken in Mail 5.
>
> I can't get name or content of headers like I could on Snow Leopard. The result is 'missing value'.
Unfortunately, I can. Furthermore, these fail too:
tell application "Mail"
set foo to item 1 of (get the selection)
set bar to (get header 1 of foo) -- or using the name of the header
name of bar -- any property or properties
end tell
--> error "Mail got an error: Can’t get header \"return-path\" of message id 209986 of mailbox \"Applescript\"." number -1728 from header "return-path" of message id 209986 of mailbox "Applescript"
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
--
Live your life in such a way that when your feet hit the floor in the morning, your enemies shudder and say, "Oh no....she's awake!!"
_______________________________________________
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