View Full Version : Maintaining Volume Level on Auto Restart
Apr 8, 2011, 08:17 AM
Hi. I have four mac minis in kiosks around Miami. They're set to restart automatically after a power failure. I've noticed, however, that when they restart in such a situation, the volume in the System Preferences is lower than what I'd set it at previously.
I guess there's some sort of volume level it defaults to. Does anyone have any ideas on how to change that?
Apr 8, 2011, 08:45 AM
The volume can be set from the command line with something like
/usr/bin/osascript -e 'set volume 7'
0 means silent. 7 means full volume.
Perhaps you could get that to run at startup.
Apr 8, 2011, 09:09 AM
Yep, I think that's what I'm looking for.
Is that an applescript, or does it go into the terminal?
I'm a complete novice with this stuff, though I've had some recent success w/ automator and applescript.
Apr 8, 2011, 06:42 PM
"set volume 7" is AppleScript. The command I gave above runs in the Terminal or a Bash script. It just runs the AppleScript via the osascript program.