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: Sat, 03 Aug 2013 16:43:22 +1000
Michelle
your tip didn't work, but it lead me to it…:-)
I (eventually) noticed in the SD Explorer view that all mailboxes had the syntax of
mailbox "Activities/Design Action Agenda"
i.e. the container "Activities" with mailbox "Design Action Agenda"
so i changed my statement to
tell application "Mail" set mbxContainer to oldCatName & "/" & mailBoxName as string … delete mailbox mbxContainer end tell
and it works!
tks
Message: 2 Date: Thu, 01 Aug 2013 13:07:15 -0700 From: Michelle Steiner < email@hidden> To: Applescript Users < email@hidden> Subject: Re: Moving & deleting a mailbox in Mail Message-ID: < email@hidden"> email@hidden> Content-Type: text/plain; charset="utf-8" On Aug 1, 2013, at 12:53 AM, John Mitchell < email@hidden> wrote: i tried this
delete mailbox mailBoxName of mailbox oldCatName
and get an OS error of -10000
does anyone have a suggestion?
I think you have to specify the entire hierarch of mailboxes up to and including the account. (If the hierarchy is in "On My Mac", you don't have to specify it as the account." Here's a simplified example: tell application "Mail" activate make new mailbox with properties {name:"delete me"} at account " email@hidden" delete mailbox "delete me" of account " email@hidden" end tell -- Michelle
regards
John
CQR Pty Ltd 1005/2 Dind Street, Milsons Point, NSW 2061 Australia ABN: 45 001 785 191 • NSW ARBN: 3605 Email: email@hidden • Mob: +61 410 318 131 Skype: jrmitchell Tel: +61 (2) 9922 3785
|
_______________________________________________
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