I use osascript a lot to automate things that need automating and until yesterday, I did so almost exclusively from shell scripts.

Read more