Set speaker volume from terminal? (and other volume questions)

Discussion in 'macOS' started by MaestroNole, Dec 2, 2005.

  1. MaestroNole macrumors newbie

    Joined:
    Dec 2, 2005
    #1
    I teach a class in a 30 machine emac lab running panther.

    Is there any way to set the speaker volume of a machine using a terminal command (over ARD etc.) E.g., setvolume 30 for 30% volume etc. If not are there any console utilities available that do this?


    ...Also, is there any way to simply completely mute the computer speakers only allowing for headphone use, without having something plugged into the headphone jack 100% of the time?
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    You can probably do it via AppleScript. As you can run AppleScript from the command line via osascript (iirc) that would probably yield a solution...
     
  3. Bear macrumors G3

    Joined:
    Jul 23, 2002
    Location:
    Sol III - Terra
    #3
    Actual command is:

    osascript -e 'set volume <n>'

    where <n> is a value from 0-7.
     
  4. Bear macrumors G3

    Joined:
    Jul 23, 2002
    Location:
    Sol III - Terra
    #5
     

Share This Page