image

Application

image

A compiled script can be saved as an application, traditionally known as an applet. An applet is a stand-alone application. When opened in the Finder, the script runs.

An applet’s script can be edited in Script Debugger by opening it in any of the usual ways.

You can save a script as an applet and leave the script open in Script Debugger. This allows you to test the script from the Finder and then easily edit it in Script Debugger.

Script Debugger has some further features for helping you test a script that is destined to be saved as an applet. You can test individual handlers in the applet, and you can debug the applet while it is running.

To save a script as an application (if it isn’t an application already):

image

Besides the format, you can also set further options for the behavior of the resulting application. To do so, use the checkboxes in the Save dialog, or choose from the hierarchical File > Application Options menu. (You can also add Stay Open and Show Startup buttons to the script window’s toolbar. They change their names and icons to indicate whether the setting is on or off.)

Warning: An application saved in debug mode will not run normally (when launched, it will initiate an external debugging session in Script Debugger). Unless that’s what you intend, be sure to save the application in normal mode when you’re finished debugging it.



image
Compiled Script Text
image