Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

Ok i got it working in Mavericks!

DO THIS:

- Go to terminal.

- Write sudo nano /Library/Scripts/mute-off.sh

- Paste:

#!/bin/bash
osascript -e 'set volume without output muted'

- Press 'Ctrl + X' and press 'Y' and 'Enter'

- Write sudo nano /Library/Scripts/mute-on.sh

- Paste:

#!/bin/bash
osascript -e 'set volume with output muted'

- Press 'Ctrl + X' and press 'Y' and 'Enter'

- Paste this in terminal and press enter :

sudo chmod u+x /Library/Scripts/mute-on.sh


sudo chmod u+x /Library/Scripts/mute-off.sh
sudo defaults write com.apple.loginwindow LogoutHook /Library/Scripts/mute-on.sh
sudo defaults write com.apple.loginwindow LoginHook /Library/Scripts/mute-off.sh

- If you want to remove it again write this in terminal:

sudo defaults delete com.apple.loginwindow LoginHook


sudo defaults delete com.apple.loginwindow LogoutHook

It is really not that hard

All we did was make a command (script) that's executed (hooked) upon logout and
login. So when you logout it mutes, and when you login it unmutes

You might also like