Getting the active application's version information
Whenever I’m trying out the latest and greatest internal versions of the Spotify Mac OS X desktop application, I try to be a good product owner by reporting any bugs in our internal bug tracking system. Whenever I do so, I always(-isch) provide information about exactly which build I was running so that our developers can verify the bug using the exact same version as me.
Previously, this process involved:
- Launching Spotify (through Xcode, Finder et al.)
- Cmd-click the recently launched Spotify in Dock to reveal it in Finder
- Right-click the selected Spotify item in Finder, and then invoke its “Get Info” menu item
- Manually select and copy the string in the Version field of the Info popup
Argh, tedious… so why not make your life a bit simpler by creating an AppleScript that will do the heavy lifting for you?
return short version of (info for (path to frontmost application))
Binding the above script to whatever keyboard shortcut you feel is appropriate (using e.g. Alfred), and the above process is now simplified to…
- Switch to whatever app you’re interested in
- Invoke the global hotkey, and viola - you’ve got the app’s version information in your clipboard
It sure feels great to automate sometimes, aight?