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:

Comments

PKV///Designs said…
If you have the paid version of fluid you can attach the next button aswell.

I have this piece of custom userscript in the 8tracks fluid app:

$("body").keypress(function (e) {
if (e.which == 46) {
$("#player_skip_button").click();
}
});

this attaches makes the . (dot) key the shortcut for next song.

After that you can do the same trick in alfred to attach the right media key.

Popular posts from this blog

Restart the Windows File Sharing Service to fix weird problems

WPF, ImageSource and Embedded Resources

SharpDevelop dark color scheme