Re: Rookie - Import Mail mailbox
Re: Rookie - Import Mail mailbox
- Subject: Re: Rookie - Import Mail mailbox
- From: Luther Fuller <email@hidden>
- Date: Tue, 22 May 2007 20:22:08 -0500
On May 22, 2007, at 7:18 PM, Andreas Amann wrote:
The "import Mail mailbox" command requires a POSIX-path to the
mailbox to be imported (regardless of what the dictionary says...).
I just did a bit of experimenting with this and, yes, the path name
must be a POSIX-path.
This is what worked ...
on run
((path to desktop) as text) & "TEST.mbox"
set inpPath to (POSIX path of the result)
tell application "Mail"
activate
import Mail mailbox at inpPath
end tell
end run
BUT, there's another reason why this may not work. If the folder
"TEST.mbox" contains message files (.emlx), they will NOT be
imported. If the folder "TEST.mbox" contains a sub-folder named
"Messages" which contains the message files, then these messages ARE
imported into the mailbox Import/TEST.
Mail's dictionary says ...
import Mail mailbox : Imports a mailbox in Mail's mbox format.
import Mail mailbox
at string -- path to the mbox or directory of mbox files to import
which means that the string (= posix path) must point, not to any old
folder containing messages, but to a folder in "Mail's mbox format",
that is, ...
A folder with extension .mbox containing
a folder named "Messages" containg
.emlx files
_______________________________________________
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