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 ...
Get Learn AppleScript: The Comprehensive Guide to Scripting and Automation on Mac OS X, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.