• 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
Can't Delete Mailbox
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Can't Delete Mailbox


  • Subject: Can't Delete Mailbox
  • From: John MacMullin <email@hidden>
  • Date: Sun, 30 May 2010 13:01:32 -0700

In the editor, and in an NSApplescript, the following:

tell application "Mail"
if (exists mailbox "Email Folders/1234" of application "Mail") then
delete mailbox "Email Folders/1234" of application "Mail"
else
set x to 1
end if
end tell

produces:

theError :{
    NSAppleScriptErrorAppName = Mail;
    NSAppleScriptErrorBriefMessage = "Can\U2019t get mailbox \"Email Folders/1234\".";
    NSAppleScriptErrorMessage = "Mail got an error: Can\U2019t get mailbox \"Email Folders/1234\".";
    NSAppleScriptErrorNumber = "-1728";
    NSAppleScriptErrorRange = "NSRange: {22, 98}";
}

When running without the delete, the mailbox is found.

This mailbox is a container, the result is the same if I say delete container.

Any help would be greatly appreciated.

Best regards,

John MacMullin
Email:email@hidden
Skype: john_macmullin

 _______________________________________________
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

  • Follow-Ups:
    • Re: Can't Delete Mailbox
      • From: Yvan KOENIG <email@hidden>
  • Prev by Date: Re: getting a file by URL ?
  • Next by Date: Re: getting a file by URL ?
  • Previous by thread: Re: getting a file by URL ?
  • Next by thread: Re: Can't Delete Mailbox
  • Index(es):
    • Date
    • Thread