AppleScript file execution commands from the command line
To run a script file AppleScript Terminal in Mac OS, simply locate the osascript the file path .scpt command like this:
For example, if you saved this script to automatically connect to a VPN as a script file instead of an application, could signal the osascript command directly on the file to run. You can launch any file by simply pointing .scpt osascript command in the correct directory.
Running AppleScript script directly from Terminal
osascript -e 'display dialog "Hello from iphoneate.com" with title "Hello"'
osascript -e 'tell app "Finder" to make new Finder window'
osascript -e "set volume 0"