Ever had a problem with some people in particular keep making to much noise through internal speakers and disturbing others and wanted to mute the internal speakers but keep headphone volume the same?
you need
-audiodevice (placing in /bin/) http://whosawhatsis.com/paraphernalia/audiodevice.zip
-create a launch daemon to run a script at login
#!/bin/sh
#infinite loop while system is on
#turn off speakers if enabled
while [ 1 ]
do
OUTPUT=`audiodevice output`
if [ "$OUTPUT" = "Internal Speakers" ] ; then
osascript -e "set Volume 0"
fi
done
check these links out
http://forums.appleinsider.com/t/79221/how-to-disable-sound-output-through-internal-speakers
http://whoshacks.blogspot.co.uk/2009/01/change-audio-devices-via-shell-script.html
