Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

Part 2: Understanding AppleScript > Making Decisions When Dealing with Errors

Chapter 15. Making Decisions When Dealing with Errors

Errors in AppleScript fall into one of the following categories: bugs that prevent scripts from compiling, bugs that cause scripts to work incorrectly when run—either failing completely or doing something other than what you wanted—and errors caused by external factors beyond your script's control. Some of these errors may occur when the script is being compiled, others when it is run.

Compilation errors are those that occur when the script tries to compile. Typical compilation errors include misspelled keywords; not including a tell block when using application-specific terms; forgetting an end keyword at the end of a compound statement; and so on. Obviously, if you encounter a compile-time error, you will have to fix it before you can run the script.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial