Re: Rookie - Import Mail mailbox
Re: Rookie - Import Mail mailbox
- Subject: Re: Rookie - Import Mail mailbox
- From: Michelle Steiner <email@hidden>
- Date: Tue, 22 May 2007 15:02:10 -0700
On May 22, 2007, at 1:06 PM, Ylan Segal wrote:
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
Change the slash to a colon; I missed that when copying and pasting
from your original message. This also assumes that you have created
a folder named "Temp" in your user directory, which is what your
original code implies.
-- Michelle
--
"When fascism comes to America, it will be wrapped in the flag and
carrying a cross."--Sinclair Lewis
_______________________________________________
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