Created
July 20, 2017 03:46
-
-
Save Niximacco/0e71e930fcc04fa59a57790d5ce5116b to your computer and use it in GitHub Desktop.
Applescript to raise volume, play audio file, and revert volume back to its previous level.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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