nanovivid

Growl Notifications for Lala

November 15th, 2008Code / Geeking Out / Goodies / Mac / Music

Recently, Jeremiah was kind enough to introduce me to Lala, which is a wonderful music browsing/listening/collecting/buying site. That’s a little convoluted, so maybe a “web-based iTunes with some community features” might be the best way to describe it. Easily my favorite feature is that you can listen to entire songs before you buy, not just 30 second snippets. That’s a huge win compared to most competing stores (Rhapsody MP3 lets you listen to full songs as well, but it lacks an easy method of queueing entire albums). Pricing is another advantage; most albums are $7.49 or less, beating iTunes, Amazon MP3, Rhaposdy MP3, and just about everyone else.

Almost as soon as I started using Lala, I realized that it really needed its own Dock icon and separate browser window. Enter the wonders of Fluid. I created a SSB (Site Specific Browser) for Lala with a cassette tape as the icon. (Sure, it might not make perfect sense, what with it being digital music and all, but it’s better than using Lala’s favicon. If you want another option, the speaker icons by Jonas Rask are very nice.)

However, one important piece of functionality was missing. I’m very accustomed to having Growl notifications for music that’s playing, and while Fluid supports dispatching Growl notifications, there weren’t any existing Userscripts to make it happen. Of course, I couldn’t leave well enough alone and spent a couple hours poking around Lala’s JavaScript to see if I could find anywhere to hook in and grab player notifications. Eventually I tracked down the Header.updatePlaybackNowPlaying function, which had exactly what I needed, and I was able to write a Userscript to generate Growl notifications on Lala track changes.

You can get the Growl Userscript as part of the Lala Userscript package I’ve put together.

If you want to be my friend on Lala, here’s my profile page.

M83 - Couleurs (Sasha Invol2ver Remix)

Tags: , , , , , ,

2 Comments

feed icon Follow this discussion

  1. Abigail
    November 15th, 2008 at 1:20 pm

    This is by far one of the geekiest blog posts you’ve ever written. Nerd. :)

  2. Jeremiah
    November 20th, 2008 at 4:17 am

    Have I mentioned that you’re amazing lately?