• 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: Throwing Errors in Functions?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Throwing Errors in Functions?


  • Subject: Re: Throwing Errors in Functions?
  • From: Shane Stanley <email@hidden>
  • Date: Wed, 11 Mar 2015 16:01:19 +1100

On 11 Mar 2015, at 3:55 pm, Alex Hall <email@hidden> wrote:
>
> Once the error is caught and dealt with, depending on what it was, I'll often want to just stop the entire rest of the script from running.

Throw an error number -128, which is the user canceled error. It stops the script without any error dialog.

Cancel buttons in dialogs generally result in error number -128.

--
Shane Stanley <email@hidden>
<www.macosxautomation.com/applescript/apps/>


 _______________________________________________
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: 
 >Throwing Errors in Functions? (From: Alex Hall <email@hidden>)
 >Re: Throwing Errors in Functions? (From: Shane Stanley <email@hidden>)
 >Re: Throwing Errors in Functions? (From: Alex Hall <email@hidden>)
 >Re: Throwing Errors in Functions? (From: Shane Stanley <email@hidden>)
 >Re: Throwing Errors in Functions? (From: Alex Hall <email@hidden>)

  • Prev by Date: Re: Throwing Errors in Functions?
  • Next by Date: OffTopic : error reported in Console
  • Previous by thread: Re: Throwing Errors in Functions?
  • Next by thread: Re: Throwing Errors in Functions?
  • Index(es):
    • Date
    • Thread