Hello, my name is Brett Terpstra, and it’s nice to meet you. Elegant solutions to complex problems. Curious?
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?
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 :).
Hello, my name is Brett Terpstra, and it’s nice to meet you. Elegant solutions to complex problems. Curious?
Songza Lucky Link Service
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:
2 Responses to “Songza Lucky Link Service”
“…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.”
:-)
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 :).
Saying…
…
Follow me on Twitter
Writing…RSS
Listening… (last.fm)
Conversing…
Reminiscing…
Sorting…
Social Links
Delicious >
Twitter >
TUAW >
Flickr >
Entries (RSS) and Comments (RSS).