|
Before AppleScript will execute your code, the code must be compiled. You can compile your code separately, or else just try to run it (in which case, if it needs compiling, Script Debugger will automatically ask AppleScript to compile it before running it). Any time your script is modified, it needs compiling. Script Debugger provides a clear indication of whether your script needs compiling. If you have checked the Editor preference “Show compiled state in gutter”, then a script that needs compiling has a striped “barberpole” pattern in the gutter. The illustration below shows a script that needs compiling. ![]() To compile your code without running it:
If your script can’t be compiled because it isn’t valid AppleScript code, you’ll get an error message.
|
|||||||||||||||||