Tool: Keyboard Maestro
Some of my most productive time is in the early morning. I usually arrive at the office before everyone else and get the most done in those early hours, without interruption. Trouble is, I’m also easily distracted. When I sit down at my desk in the morning, it can be too easy and tempting to open Twitter or some other shiny object on my Mac that’ll draw my attention away from the work at hand. I use Keyboard Maestro to get me focused.
Despite its name, Keyboard Maestro can do a lot more than trigger events via keyboard shortcut. It can also respond to other triggers—including connecting to a specific wireless network. So I created a macro that, when Keyboard Maestro detects that I’ve connected to the office Wi-Fi network, it uses the Open a File, Folder, or Application action to launch OmniFocus, BusyCal, DragonDictate, and Mail. Also, using the Open a URL action, it opens Safari to a work-related site I need to check every morning.—David Sparks
Prepare apps, desktop for screencasting
First, I inserted a Run AppleScript action to run the following script:
tell application "Finder" to return POSIX path of (desktop picture as alias)
I followed that with a New Text File action that stores the string that script generates (which is the path-location of the current Desktop picture) to a temporary file so I can restore it when I’m done.
Next, I insert another Run AppleScript action, which quits or pauses a bunch of applications that I don’t want running while I’m doing the screencast (which they could interrupt) and to hide the Dock:
tell application "Growl" to pause
tell application "TotalFinder" to quit
tell application "Simplify" to quit
tell application "System Events" to set the autohide of the dock preferences to true
Then I insert a Run Shell Script action that hides my Desktop icons and restarts Finder, while also disabling Notification Center (to avoid popups while I’m recording):