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