• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Moving & deleting a mailbox in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving & deleting a mailbox in Mail


  • Subject: Re: Moving & deleting a mailbox in Mail
  • From: Michelle Steiner <email@hidden>
  • Date: Thu, 01 Aug 2013 13:07:15 -0700

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

-- 
The reason that so few people think outside the box is that all the pay and benefits are inside the box.
 _______________________________________________
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

  • Prev by Date: Re: urlEncode (AppleScript fails in Automator - Permissions error)
  • Next by Date: How can I speed up execution time of this script in case of many files
  • Previous by thread: Moving & deleting a mailbox in Mail
  • Next by thread: Moving & deleting a mailbox in Mail
  • Index(es):
    • Date
    • Thread