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


Click here to return to the 'Another solution' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Another solution
Authored by: jecwobble on Jan 28, '05 11:02:37AM

I had the same problem with Mail. I use WinSwitch in conjunction with the scripts below to effectively 'mute' volume whenever someone switches out (like to the login screen) and sets the volume to 2.5 when someone switches in. It doesn't work on login or logout, but my family typically stays logged in and switches to the login screen when not using the computer.

setvolume in each user's "Switch-In Items" folder:


#!/bin/sh

/bin/sleep 4
/usr/bin/osascript -e 'set volume 2.5'

The 'sleep' line is necessary for switching from one user to another. Without it, the switched-out user's mutevolume (below) will happen after the switched-in user's setvolume, effectively cancelling it out.

mutevolume in each user's "Switch-Out Items" folder:


#!/bin/sh

/usr/bin/osascript -e 'set volume 0'



[ Reply to This | # ]