Mac OS X,  Mac OS X Server,  Mac Security,  Mass Deployment

Scripting Volume Control in OS X

I’ve always found the easiest way to script the volume of an OS X computer (and when I say volume I mean sound level, not a logical volume created from partitioning a hard drive – but I have articles for scripting those as well) is using the osascript command to invoke an Applescript command that sets the volume to zero. To put some syntax around this:

osascript -e "set volume 0"