Created
March 5, 2019 16:07
-
-
Save zevlag/9373c9643df1dea23b77a45a926f89c9 to your computer and use it in GitHub Desktop.
Mac OS Volume Limit Script
This file contains 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Label</key> | |
<string>be.quiet.job</string> | |
<key>ProgramArguments</key> | |
<array> | |
<string>/usr/bin/osascript</string> | |
<string>-e</string> | |
<string>if (output volume of (get volume settings)) > 55 then set volume output volume 55</string> | |
</array> | |
<key>StartInterval</key> | |
<integer>20</integer> | |
<key>RunAtLoad</key> | |
<true/> | |
</dict> | |
</plist> |
This file contains 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
cat /Users/kidsLibrary/LaunchAgents/be.quiet.job.plist | |
launchctl list | grep quiet | |
launchctl unload /Users/kids/Library/LaunchAgents/be.quiet.job.plist | |
launchctl load /Users/kids/Library/LaunchAgents/be.quiet.job.plist |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment