• 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
Moving & deleting a mailbox in Mail
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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?

regards


John


John Mitchell
email@hidden



 _______________________________________________
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

  • Next by Date: Re: Copying text from the AS Editor
  • Next by thread: Re: Moving & deleting a mailbox in Mail
  • Index(es):
    • Date
    • Thread