Instantly share code, notes, and snippets.

Embed
What would you like to do?
Applescript to raise volume, play audio file, and revert volume back to its previous level.
set previousVolume to output volume of (get volume settings)
set volume output volume 80
do shell script "afplay " & "~/inception.mp3"
set volume output volume previousVolume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment