Skip to content

Instantly share code, notes, and snippets.

@boozedog
Forked from tlrobinson/net.tlrobinson.mute.plist
Last active August 29, 2015 14:20
Show Gist options
  • Save boozedog/e3b9762a1559fe32481e to your computer and use it in GitHub Desktop.
Save boozedog/e3b9762a1559fe32481e to your computer and use it in GitHub Desktop.
launchctl load ~/Library/LaunchAgents/net.buser.mute.plist
launchctl load ~/Library/LaunchAgents/net.buser.unmute.plist
<?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>net.buser.mute</string>
<key>ProgramArguments</key>
<array>
<string>osascript</string>
<string>-e</string>
<string>set volume with output muted</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>20</integer>
<key>Minute</key>
<integer>30</integer>
</dict>
</dict>
</plist>
<?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>net.buser.unmute</string>
<key>ProgramArguments</key>
<array>
<string>osascript</string>
<string>-e</string>
<string>set volume without output muted</string>
</array>
<key>StartCalendarInterval</key>
<dict>
<key>Hour</key>
<integer>09</integer>
<key>Minute</key>
<integer>00</integer>
</dict>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment