Re: Mute System
Re: Mute System
- Subject: Re: Mute System
- From: Christopher Nebel <email@hidden>
- Date: Wed, 12 Mar 2008 21:10:33 -0700
On Mar 12, 2008, at 12:23 PM, I. Savant wrote:
On Wed, Mar 12, 2008 at 2:49 PM, Herr Thomas Bartelmess <email@hidden
> 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
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden