On Mar 12, 2008, at 12:23 PM, I. Savant wrote:
On Wed, Mar 12, 2008 at 2:49 PM, Herr Thomas Bartelmess <[EMAIL PROTECTED]
> 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 (Cocoa-dev@lists.apple.com)
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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]