Basics of AppleScript

Compile

Next step is to compile the script. We just need to click on the Compile button. The compiler will check for errors. If there is something wrong with the script, it will throw an error.

Figure 2.3.1

Figure 2.3.1 Compiling the Script