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