Hardware Reference
In-Depth Information
Figure 38: The optional AppleScript menu displays both built-in and
user-supplied scripts, letting you run them with one click (and without
opening AppleScript Editor).
To save any of your own scripts (including those you created using the sample code just
previously)asfiles,chooseFile>Save,chooseanameandlocation,andleavetheFileFormat
pop-up menu set to its default choice of Script. Then click Save.
Save an AppleScript in Other Formats
Besides saving AppleScripts as files (using the Script option in the Save dialog),
you can save them as Applications, which look and act like apps. These run by
themselves, without opening AppleScript Editor, when you double-click them in the
Finder. (Applications can also behave as droplets, acting on whatever files or folders
you drop onto them.)
Another option is Script Bundle, which is just like an application except that it can also
contain extra resources the script may need (such as graphics or sounds).
Finally, you can choose Text to save the script as plain text.
Tip: Besides running an AppleScript in AppleScript Editor, from the AppleScript
menu, or as a stand-alone app, you can also trigger AppleScripts using many of
the other utilities discussed in this topic, such as Keyboard Maestro, LaunchBar, and
TextExpander.
Search WWH ::




Custom Search