image

Compile

image

Your script needs to be compiled before it can be run or saved if it has been modified since the last time it was run or saved.

imageAn Editor preference, “Show compiled state in gutter,” causes a script that needs compiling to display a striped “barberpole” pattern in the gutter.

To compile your script, you can:

image

If your script can’t be compiled because it isn’t valid AppleScript code, you’ll get an error message.

To force your script to recompile even if it doesn’t need compiling, hold down the Option key and choose Script > Recompile (or click Recompile in the toolbar). This will also re-initialize persistent top-level entities to their base values.

image

After a successful compilation, the script window displays the word “Compiled” in the status bar.



Execute
image