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 16:05:43 -0700
On May 22, 2007, at 3:02 PM, Michelle Steiner wrote:
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
[snip]
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
[snip]
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.
Of course, I have the directory and file in place :)
I did try changing the slash to colon, as you suggested. But still,
nothing seems to happen. Any other suggestions?
Code:
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
Event log:
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
Thanks for the help,
--
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