Running AppleScript commands from the Terminal.app
I found some pages on the web on how to run an AppleScript from the terminal, but this seems to be the only one that works in my situation: echo ‘tell application “Google Chrome” to quit’ | /usr/bin/osascript In my case, my keyboard stopped working so I wanted to safely shut down the programs via … Read more