Re: Error handling with AppleScript
Re: Error handling with AppleScript
- Subject: Re: Error handling with AppleScript
- From: Matthew Smith <email@hidden>
- Date: Wed, 14 Jul 2004 17:00:02 +1000
on 14/07/2004 16:41, BADRINATH, NANDINI at email@hidden wrote:
>
Are there any predefined constructs in AppleScript for exception and
>
error handling? Is there something like the Try/Catch blocks in C++ or
>
anyhting which I can use for exception handling?
AppleScript has a try block with an 'on error' section for catching the
error, which you throw with an error statement.
See the the Try statement AppleScript Language Guide:
http://developer.apple.com/documentation/AppleScript/Conceptual/AppleScriptL
angGuide/index.html
You should also look at the Error Numbers & Error Messages in the same
document.
--
Matthew Smith
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.