moving messages in Mail.app
moving messages in Mail.app
- Subject: moving messages in Mail.app
- From: <email@hidden>
- Date: Thu, 22 Apr 2004 17:10:02 +0200
Hello,
I would like to create mailboxes in Mail.app, create mails and file
them into the designated mailboxes. Unfortunately i cannot get the
move-command to work. The Mail-Dictionary says the following:
Quote:
move reference -- the message(s) to move
to mailbox -- The new mailbox for the message(s).
So i believe the code below should work. But I get an
NSInternalScriptError.
What's wrong? How can i get it to work?
Thank you.
jacques
Code:
set mboxName to "testMailBox"
tell application "Mail"
make new mailbox with properties {name:mboxName}
set mbox to mailbox named mboxName
set newMessage to make new outgoing message with properties
{subject:"subject", content:"body", visible:true}
set mbox to mailbox named mboxName
move newMessage to mbox
end tell
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.