Skip to content

Instantly share code, notes, and snippets.

@quamen
Forked from NZX/gist:558363
Created August 31, 2010 01:22
Show Gist options
  • Save quamen/558365 to your computer and use it in GitHub Desktop.
Save quamen/558365 to your computer and use it in GitHub Desktop.
class Robot
def self.rock!
system(%(osascript -e 'tell application "iTunes" to play track named "Robot Rock"'))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment