Skip navigation.
 
mlRe: Mute System
FROM : Christopher Nebel
DATE : Thu Mar 13 05:10:33 2008

On Mar 12, 2008, at 12:23 PM, I. Savant wrote:

> On Wed, Mar 12, 2008 at 2:49 PM, Herr Thomas Bartelmess <thomas.<email_removed>
> > wrote:
>

>> Hi everyone, does somebody know,
>> what i have to do to control the system Aduio Volume (mute, increase,
>> decrease).
>>
>> I searched a lot, but without result

>
>  A quick Google search revealed this AppleScript:
>
> set volume with output muted
>
>  ... you can create and run an AppleScript within Cocoa easily.


Uh, yeah.  We consider using AppleScript from an otherwise Objective-C 
app for anything other than user-supplied scripts to be bad form, 
because it's wildly inefficient.  In particular, you shouldn't use it 
just because you can't find the real API.  Appropriate tool for the 
job, and all that.  AudioDeviceGetProperty and AudioDeviceSetProperty 
are the calls you want.


--Chris Nebel
AppleScript Engineering

Related mailsAuthorDate
mlMute System Herr Thomas Bartel… Mar 12, 19:49
mlRe: Mute System I. Savant Mar 12, 20:23
mlRe: Mute System Jean-Daniel Dupas Mar 12, 20:31
mlRe: Mute System Keith Duncan Mar 12, 23:41
mlRe: Mute System Christopher Nebel Mar 13, 05:10
mlRe: Mute System I. Savant Mar 13, 11:58