Sound Control has support for AppleScript. Here are some examples on how to use Sound Control with AppleScript.
Set Music volume to 0.5
tell application "Sound Control"
set music to first audio app whose id is "com.apple.Music"
tell music
set volume 0.5
end tell
end tell
Set Default Output volume to 0.5
tell application "Sound Control"
set defaultOutput to system output device
tell defaultOutput
set level to 0.5
end tell
end tell
Mute Music
tell application "Sound Control"
set music to first audio app whose id is "com.apple.Music"
tell music
set muted to true
end tell
end tell
Change the selected Output Device
tell application "Sound Control"
set theDevice to first output device whose name is "Mac mini speakers"
set default output device to theDevice
end tell
Change the selected Input Device
tell application "Sound Control"
set theDevice to first input device whose name is "New Input"
set default input device to theDevice
end tell
Please see the Sound Control's AppleScript dictionary for a complete listing of command and properties that are available.
Comments
0 comments
Please sign in to leave a comment.