Skip to content

Instantly share code, notes, and snippets.

@citizen428
Created March 18, 2009 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save citizen428/81399 to your computer and use it in GitHub Desktop.
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
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