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 16:57:40 -0700
On May 22, 2007, at 4:05 PM, Ylan Segal wrote:
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
The only thing that I can think of is that although the dictionary
says you need a string, you might need an alias.
So change the first line to
tell application "Finder" to set temp to ((path to home folder from
user domain as text) & "Temp:ylan.mbox") as alias
If that doesn't work, I'm out of ideas.
-- Michelle
--
"Other than telling us how to live, think, marry, pray, vote, invest,
educate our children and, now, die, I think the Republicans have done
a fine job of getting government out of our personal lives."
--Craig Carter
_______________________________________________
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