If you frequently switch between your Mac’s speakers and headphones (or any multiple outputs), you know the first-world problem of having to open System Preferences.app, click on Sound, and change the output device. You could also switct outputs by pressing ⌥ (option key) + mouse click on the volume icon in the menu bar, which displays all your inputs…
Category: AppleScript
AppleScript: Toggle Grayscale On/Off with a Keyboard Shortcut
So OS X 10.11 – El Capitan broke an AppleScript that I had been using to toggle grayscale mode on/off, resulting in a script error: All it took was adding a delay to fix the script (notated as a comment in the script below). If you are running into errors with a previously used “Toggle Grayscale” AppleScript…

AppleScript: Find Pane ID for System Preferences.app
I just started diving into AppleScript a little more, and figured out a nifty way of finding the pane ID for any of the panes (General, Mouse, Network, etc.) in the System Preferences app. This is extremely useful for creating scripts that need to access any of the System Preferences.app settings. Tested on Mac OS X…