Skip to content

Instantly share code, notes, and snippets.

@delputnam
Last active December 17, 2015 07:48
Show Gist options
  • Save delputnam/5575288 to your computer and use it in GitHub Desktop.
Save delputnam/5575288 to your computer and use it in GitHub Desktop.
Shell script for Mac OS X to raise volume slightly, play an MP3, and lower the volume again. I use it with Alfred's workflows to trigger the sound when I press a certain key combination. It's really just for fun.
osascript -e "set Volume 3.5"
afplay ~/Dropbox/Sounds/itssofluffy.mp3
osascript -e "set Volume 1.25"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment