Created
March 18, 2009 20:56
-
-
Save citizen428/81399 to your computer and use it in GitHub Desktop.
Googles for the lyrics of the currently playing song in a new Safari window
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'rbosa' | |
song = OSA.app('iTunes').current_track.name.gsub(/\(.*\)/, '').gsub(/\s/,'%20') | |
system("open -a Safari http://www.google.com/search?q=#{song}+lyrics") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment