Friday, January 27, 2012

Control Pulsar with Alfred

The Pulsar Alfred Extension in action

Wherein you:

  1. Are a Sirius subscriber, and
  2. Listen to Sirius on your Mac via Rogue Amoeba’s awesome Pulsar application, and
  3. Heart the hell out of the productivity provided by Alfred, and
  4. Have the Alfred Powerpack installed, then

You might be wishing you could use Alfred to control Pulsar so you didn’t have to activate the app every time you wanted to pause a great song by Starland Vocal Band. I was too. Eventually, I decided to do something about it.

Pulsar’s script API isn’t very extensive, but it does cover pause/play as well as a few other useful bits. The Pulsar extension supports:

  • xm play
  • xm pause
  • xm show (display the channel, artist, track and album now being played)
  • xm next (changes the channel to the next Favorite channel)
  • xm prev (changes the channel to the previous Favorite channel)

I chose the xm keyword because it’s short and reasonably descriptive since I’m playing a Sirius_XM_ channel, but that’s easy to change once the extension is installed. If you have Growl installed, the xm show command will display a Growl notification. If not, it will degrade to an ugly, but functional alert dialog.

Growl notification

Hint: Any command other than play, pause, next and prev will behave as show. Give it a try.

Download the Alfred Pulsar Extension