Re: Rookie - Import Mail mailbox
Re: Rookie - Import Mail mailbox
- Subject: Re: Rookie - Import Mail mailbox
- From: Ylan Segal <email@hidden>
- Date: Tue, 22 May 2007 13:06:37 -0700
On May 22, 2007, at 10:29 AM, Michelle Steiner wrote:
On May 22, 2007, at 9:51 AM, Ylan Segal wrote:
tell application "Mail"
import Mail mailbox at "~/Temp/ylan.mbox"
end tell
Try this:
tell application "Finder" to set temp to path to user domain as
text & "Temp/ylan.mbox"
tell application "Mail" to import Mail mailbox at temp
Michelle,
Thanks for taking the time to reply.
I tried your code, but got an error. So I did my best to correct it
(reading from the documentation):
tell application "Finder" to set temp to (path to home folder from
user domain as text) & "Temp/ylan.mbox"
tell application "Mail" to import Mail mailbox at temp
However, this does not appear to do anything, although the path seems
to be correct. The Event log shows:
tell application "Finder"
path to home folder from user domain as text
"ylan:"
end tell
tell application "Mail"
import Mail mailbox at "ylan:Temp/ylan.mbox"
end tell
Of course, the mbox is located where the path points to and is
importable using the menus.
Any help is appreciated,
--
Ylan Segal
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:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden