The discovery, acceptance & management of life's gaps

Running AppleScript from the Command Line

Saturday 31 March 2012 - Filed under automation + gaps + Technology

Running AppleScript, and thus AppleScrunix, from the command line is quite simple. The command is osascript, see the osascript(1) Mac OS X Manual Page for more information. Open the application “Terminal” and type “osascript” followed by a space at the prompt ($). Next type the full path to the script or simply drag the script icon onto the terminal window and let terminal insert the path. The final command should look like below.

$ osascript /path/to/script.scpt

2012-03-31  »  Russ Leseberg

Share your thoughts

Re: Running AppleScript from the Command Line

Tags you can use (optional):
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>