Can't Delete Mailbox
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