A collection of awesome, useful, not-so-obvious applescripts.
Get bounds of application window
$ osascript scripts/app/get-bounds.applescript Safari
Hide application
$ osascript scripts/app/hide.applescript Safari
Check if application is hidden
$ osascript scripts/app/is-hidden.applescript Safari
Check if application is miniaturized (minimized)
$ osascript scripts/app/is-mini.applescript Safari
Check if application is running
$ osascript scripts/app/is-running.applescript Safari
Help wanted.
Open (or highlight tab if already open) a URL
$ osascript scripts/chrome/open-url.applescript https://news.ycombinator.com/
Get reminders in list
$ osascript scripts/reminders/get-reminders-in-list.applescript "Today"
Get all lists
$ osascript scripts/reminders/get-lists.applescript
Hide the sidebar
$ osascript scripts/reminders/hide-sidebar.applescript Safari
Switch to a different list
$ osascript scripts/reminders/switch-list.applescript "Grocery List"
Count a list
$ osascript scripts/reminders/count-list.applescript "Grocery List"
MIT