Moving & deleting a mailbox in Mail
Moving & deleting a mailbox in Mail
- Subject: Moving & deleting a mailbox in Mail
- From: John Mitchell <email@hidden>
- Date: Thu, 01 Aug 2013 17:53:52 +1000
Hi
to move a mailbox I had code that - created a new mailbox of the same name (in another higher level mailbox)
- moved every message in the source mailbox to the new mailbox
- then "moved" the source mailbox to the "trash mailbox"
createMailBox(emailApp, "", catName, mailBoxName) of me move every message of (mailbox mailBoxName of mailbox oldCatName) to (mailbox mailBoxName of mailbox catName) set mailbox of (mailbox mailBoxName of mailbox oldCatName) to mailbox 2 of trash mailbox
However despite creating no errors it has not moved or deleted the source mailbox (but all the messages are in the new mailbox). mailbox 2 is the 2nd account of my email accounts which is used by default.
i tried this delete mailbox mailBoxName of mailbox oldCatName
and get an OS error of -10000
does anyone have a suggestion?
|
_______________________________________________
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