If you want the script’s description—defined in the Accessory View pane—to display when the applet launches, select the "Show startup screen" checkbox.
If you want to create a stay-open applet, select the "Stay open after run handler" checkbox.
Click Save.
Protecting a Script’s Source Code
If you plan to distribute your script, you may wish to protect is source code. This is done by exporting the script in run-only format.
To save a script in run-only format
Choose File > Export to display the export dialog.
Type a name for the applet and choose an output folder.
Choose a format from the File Format popup menu.
If you’re saving in application format, choose whether you want a startup screen or a stay-open script.
By default, the security settings in OS X only allow the launching of apps (including applets and droplets) that have been created by you, downloaded from the Mac App Store, or created by developers identified by Apple. If you plan to distribute your scripts to others, you should consider code signing your scripts with an Apple developer ID.
You obtain a Developer ID certificate from Certificates, Identifiers & Profiles in your developer account and import it on your Mac. For detailed information about obtaining and importing a certificate, see Maintaining Your Signing Identities and Certificates in App Distribution Guide.
To prepare a script application or bundle code signing
If the Bundle Contents pane isn’t visible, choose View > Show Bundle, press Command-0, or click the bundle contents button (image: ../Art/icon_bundlecontents_2x.png) in the toolbar.
Make sure the following highlighted fields are populated in the Bundle Contents pane.