Sound Scripting Scripting Addition Application
There is a new scripting addition application, Sound Scripting, which allows you to control many settings available through the Sound control panel. You can get a list of your Mac’s alert sounds and set a new alert sound, list available sound input and output devices and sources and set them, get and set the input gain and output volume, and enable and disable playthrough. The Set Volume command still exists in the Standard Additions scripting addition, but the new Sound Scripting osax lets you get as well as set the volume. On my PowerBook, Sound Output Device and Sound Output Devices return no result, although the built-in speakers work just fine.