1. Run "osascript".
2. Type your script, for example:
tell application "Dock" to quit3. Type Control-D when done.
launch application "Dock"
You can also supply a filename to "osascript" to run the script inside, and you can compile—but not run—script files using "osacompile".

