Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Mute the startup sound using a logout hook' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Mute the startup sound using a logout hook
Authored by: poultryfarm on Oct 08, '03 06:05:00PM
great hint. 2 thoughts:
sudo defaults write com.apple.loginwindow LogoutHook /usr/local/bin/mute.sh
this writes the change to /private/var/root/Library/Preferences/com.apple.loginwindow.plist
if it were instead written to the users com.apple.loginwindow.plist file
~/Library/Preferences/com.apple.loginwindow.plist
would this instead implement this only on a per user basis? that would be nice.

also instead of writing an applescript to 'unmute' the sound couldn't you just write a loginhook? is the code for that just 'LoginHook' instead of 'LogoutHook'?

[ Reply to This | # ]
Mute the startup sound using a logout hook
Authored by: poultryfarm on Oct 08, '03 08:25:07PM

well couldn't get the loginhook to unmute the volume, even when i tried something like the script below to not 'mute' the sound but make it inaudible:
osascript -e 'set volume .03'



[ Reply to This | # ]
Mute the startup sound using a logout hook
Authored by: kirbysdl on Feb 05, '04 03:41:03PM
I thought I was having the same problem, but it turns out that volume level 5 is the second lowest effective volume setting. Everything between 0 and 4 inclusive turn off the sound (at least for this particular Powerbook).

So try set volume 5. That's what I did for my loginhook and it works.

[ Reply to This | # ]
Mute the startup sound using a logout hook
Authored by: Pat-B on Apr 29, '04 09:50:41AM

I've noticed that if you're using fast user switching, and you log out of an account, let the account do it's 120 second countdown and switch to another account while the countdown is still running, your volume will be reduced to 0.

It took me a while to figure this out, as I would be listening to my music and suddenly the music would go silent.



[ Reply to This | # ]