O'Reilly logo

Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition by Hanaan Rosenthal, Hamish Sanderson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required