• 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: Re: Get .emlx file for Mail message?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >Get .emlx file for Mail message? (From: "Michael Grant" <email@hidden>)
 >Re: Get .emlx file for Mail message? (From: Philip Aker <email@hidden>)
 >Re: Get .emlx file for Mail message? (From: Luther Fuller <email@hidden>)
 >Re: Get .emlx file for Mail message? (From: Philip Aker <email@hidden>)
 >Re: Get .emlx file for Mail message? (From: Philip Aker <email@hidden>)
 >Re: Get .emlx file for Mail message? (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: AppleScript runs slow on Intel Macs
  • Next by Date: Re: List MOM, et al.
  • Previous by thread: Re: Get .emlx file for Mail message?
  • Next by thread: Re: Get .emlx file for Mail message?
  • Index(es):
    • Date
    • Thread