Elentok's Blog

About me

Global hotkeys for 8tracks on Mac

A few days ago I started using the 8tracks service, it's a really cool music streaming service.

The only thing I was missing was a global hotkey for play/pause, so I implemented it using a combination of Fluid, AppleScript and Alfred.

First, install Fluid (the free download is enough) and create a standalone application for 8tracks:

Then, download the 8tracks workflow and install it in Alfred.

Now you can use Command+F8 to toggle play/pause in 8tracks (you can change it in Alfred's workflow settings).

If you use a different launcher, here's the applescript that actually does the work:

tell application "8tracks"
  tell application "System Events"
    keystroke " "
    keystroke tab using {command down}
  end tell
end tell
Next:Linux on the 2012 MacBook Air