Re: Re: Get .emlx file for Mail message?
Re: Re: Get .emlx file for Mail message?
- Subject: Re: Re: Get .emlx file for Mail message?
- From: "Michael Grant" <email@hidden>
- Date: Sun, 24 Sep 2006 13:57:55 -0500
Beautiful, thanks guys!
Michael
On 9/24/06, Philip Aker <email@hidden> wrote:
My apologies Luther,
That last version was still not correct. I believe this is it:
script murl
property prefix : "file://" as Unicode text
property lpath : POSIX path of (path to library folder from user domain)
on run
set res to {}
tell application "Mail"
set sels to (get selection)
repeat with i from 1 to count of sels
set p to ".mbox/Messages/"
set m to mailbox of item i of sels
set mid to id of item i of sels
tell m
set n to name
if (its account exists) then
tell its account
if (account type is not pop) then set p to ".imapmbox/Messages/"
set end of res to prefix & account directory & "/" & n & p & mid & ".emlx"
end tell
else
set c to its container
set p to n & p
repeat while c exists
set p to c's name & "/" & p
set c to c's container
end repeat
set end of res to prefix & lpath & "Mail/Mailboxes/" & p & mid & ".emlx"
end if
end tell
end repeat
end tell
res
end run
end script
run script murl
Philip Aker
email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list
(email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
--
I never metadata I didn't like.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden