• 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: Error handling with AppleScript
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.


  • Follow-Ups:
    • Re: Error handling with AppleScript
      • From: Walter Ian Kaye <email@hidden>
  • Prev by Date: Error handling with AppleScript
  • Next by Date: Re: Error handling with AppleScript
  • Previous by thread: Error handling with AppleScript
  • Next by thread: Re: Error handling with AppleScript
  • Index(es):
    • Date
    • Thread