Skip to content

Instantly share code, notes, and snippets.

@amcooper
Last active July 1, 2016 01:26
Show Gist options
  • Save amcooper/c72f2ff1a7e5362a0a45f5e65c8b484f to your computer and use it in GitHub Desktop.
Save amcooper/c72f2ff1a7e5362a0a45f5e65c8b484f to your computer and use it in GitHub Desktop.
Basic Ruby code for launching a command-line MP3 player and playing a file
# Basic Ruby code for launching a command-line MP3 player and playing a file
command = "afplay fatal_wedding.mp3"
value = `#{command}`
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment