• Home
  • About
  • Code
  • Archives
  • Contact
Home Link

Hello, my name is Brett Terpstra, and it’s nice to meet you. Elegant solutions to complex problems. Curious?

  • Previous Test post from iphone
  • Next fk: a useful bash function
songzaservice111209

Songza Lucky Link Service

Nov 12, 2009 (261 days ago)

This is a quick and dirty Snow Leopard Service that scrapes Songza.fm to find a song related to your selected text in most applications. It replaces the selected text with an is.gd shortened link and the name of the first song it found (just to be sure you're on the same page... literally). The code is also available as a TextMate command for those interested. Update: TextMate command with link selection popup.

The service (and TextMate command) require the Hpricot gem for ruby. In most cases, this should be installable from the command line with sudo gem install hpricot. If you see errors, you may need to update some Ruby components. Once that's set, just install the workflow in ~/Library/Services and it should immediately start showing up in your services menu. Add a shortcut for it in Preferences -> Keyboard -> Shortcuts -> Services. Next time you're tweeting or writing an email about a song, why not send a Songza link to back up your point?

Download the service.

Related posts:

  • Updated: Songza Lucky Link Service
  • Songza is back!
  • A better System Service for Evernote clipping — with MultiMarkdown
  • Clippable to Evernote Snow Leopard Service
  • A System Service for to. url shortening
This entry was posted on Thursday, November 12th, 2009 at 5:41 pm and is filed under Blog, Code.You can leave a response, or trackback from your own site. Tagged: service, snow leopard, songza, textmate

2 Responses to “Songza Lucky Link Service”

  1. Mike R says:
    January 2, 2010 at 8:38 pm

    “…and, while this might go without saying, you can’t install the hpricot gem if you don’t have Xcode/the Mac OS X developer tools installed.”

    :-)

    Reply
    • Brett says:
      January 2, 2010 at 8:41 pm

      I realized this a while after I posted it (working on a Mini without Xcode). I’m working on hpricot-independent versions of a few Services and scripts, I’ll post them when I’ve got it figured out :).

      Reply

Leave a Reply

Click here to cancel reply.

Comments may use standard Markdown formatting

Saying…

…

Follow me on Twitter

Writing…RSS
  • Single-keystroke Instapaper in Google Reader
  • Instapaper Beyond 1.8.9
  • Instapaper Beyond 1.8.7
  • Notes on cleaning up the MediaTemple hack (JohnnyA)
  • Make amazing coffee without the hassle
  • Fixing Gleebox
  • And now… something happier
  • Sad songs, part 2: Junky Angel
  • Instapaper Beyond: fix for text style controls
  • EverSave revisited, now with session restore!
Listening… (last.fm)
    • Conversing…
      • Dan on Notes on cleaning up the MediaTemple hack (JohnnyA)
      • LagaV on Single-keystroke Instapaper in Google Reader
      • Xiaohung. on Safari Reader Antique hack
      • theFlashBlog » Details Of The JohnnyA MediaTemple Hack on Notes on cleaning up the MediaTemple hack (JohnnyA)
      • Robert Spencer on TabLinks Safari Extension
    • Reminiscing…
      • July 2010
      • June 2010
      • May 2010
      • April 2010
      • March 2010
      • February 2010
      • January 2010
      • December 2009
      • November 2009
    • Sorting…
      • Blog
      • Code
      • Featured
      • Misc
      • Music
      • Write
    Thanks for reading!

    Social Links

    Delicious >
      Twitter >
        TUAW >
          Flickr >
            • Home
            • About
            • Code
            • Archives
            • Contact

            Entries (RSS) and Comments (RSS).

            • Top
            • Page nav