Re: Getting text out of Mail headers
Re: Getting text out of Mail headers
- Subject: Re: Getting text out of Mail headers
- From: Shane Stanley via AppleScript-Users <email@hidden>
- Date: Tue, 9 Jun 2020 10:13:29 +1000
On 8 Jun 2020, at 8:35 pm, LuKreme via AppleScript-Users
<email@hidden> wrote:
>
> How can I get AppleScript to extract text from the headers of a message in
> Mail.app?
Messages contain header objects. For example:
tell application id "com.apple.mail" -- Mail.app
set theMessage to item 1 of (get selection)
set theIP to content of header 1 of theMessage whose name is
"x-originating-ip"
end tell
--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>, <latenightsw.com>
_______________________________________________
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