To save a script with Script Debugger:
Scripts can be saved in various formats. If you are creating a new file, options for specifying the desired format appear in the Save dialog (the Format pop-up menu). Alternatively, you can specify format options by choosing from these hierarchical menus:
To save a script, the script must be compiled. If you wish to save a script without compiling you can save it as text.
A compiled script (or application) can also be exported as a run-only script.