Re: Throwing Errors in Functions?
Re: Throwing Errors in Functions?
- Subject: Re: Throwing Errors in Functions?
- From: Alex Hall <email@hidden>
- Date: Wed, 11 Mar 2015 00:27:59 -0400
On Mar 11, 2015, at 12:08 AM, Shane Stanley < email@hidden> wrote:
On 11 Mar 2015, at 2:56 pm, Alex Hall < email@hidden> wrote: throw msg "x cannot be less than 10." number -1
You're close: error "x cannot be less than 10." number -1
Well, that was easy. :) Thanks. On a related note, how would I force the script to stop executing if a function errors out? I've tried exit, but that's only for loops; and quit, but that somehow closed Script Editor.
--
Have a great day, Alex Hall
|
_______________________________________________
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