• 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

Songza Lucky Link Service

Nov 12
2009

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:

  • Downtime apology and upcoming projects
  • A better System Service for Evernote clipping — with MultiMarkdown
  • A (fairly) simple equation evaluation service for Snow Leopard
  • Clippable to Evernote Snow Leopard Service
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 with­out say­ing, you can’t install the hpri­cot gem if you don’t have Xcode/the Mac OS X devel­oper tools installed.”

    :-)

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

      I real­ized this a while after I posted it (work­ing on a Mini with­out Xcode). I’m work­ing on hpricot-independent ver­sions of a few Ser­vices and scripts, I’ll post them when I’ve got it fig­ured out :).

      Reply

Leave a Reply

Click here to cancel reply.

A picture of me (Brett)
Saying…

…

Follow me on Twitter

Writing…RSS
  • Save Safari tabs to Instapaper
  • A better System Service for Evernote clipping — with MultiMarkdown
  • Saving Safari browsing sessions to Evernote
  • Clippable updated, goes mobile
  • Emma, watching The Westminster Dog Show…
  • A CellSpin Test
  • Downtime apology and upcoming projects
  • Big Nerd Ranchero
  • A (fairly) simple equation evaluation service for Snow Leopard
  • Clippable updated to remove source code line numbers
Listening (last.fm)
    • Reminiscing…
      • March 2010
      • February 2010
      • January 2010
      • December 2009
      • November 2009
    • Sorting…
      • Blog
      • Code
      • Misc
      • Write
    Thanks for reading!
    Delicious >
      Twitter >
        Flickr >
          TUAW >

            Entries (RSS) and Comments (RSS).

            Switch to Mobile version

            Send me a message


            Send me a copy

            Powered by SimpleModal Contact Form