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

Re: Can't Delete Mailbox


  • Subject: Re: Can't Delete Mailbox
  • From: Yvan KOENIG <email@hidden>
  • Date: Sun, 30 May 2010 22:07:01 +0200


Le 30 mai 2010 à 22:01, John MacMullin a écrit :

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}";
}


May I ask what is a NSApplescript ?

Yvan KOENIG (VALLAURIS, France) dimanche 30 mai 2010 22:06:34


 _______________________________________________
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

References: 
 >Can't Delete Mailbox (From: John MacMullin <email@hidden>)

  • Prev by Date: Re: getting a file by URL ?
  • Next by Date: Responding to "scanf" in do shell script
  • Previous by thread: Can't Delete Mailbox
  • Next by thread: Responding to "scanf" in do shell script
  • Index(es):
    • Date
    • Thread