Skip to content

Instantly share code, notes, and snippets.

@NZX
Created August 31, 2010 01:19
Show Gist options
  • Save NZX/558363 to your computer and use it in GitHub Desktop.
Save NZX/558363 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