• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Mute System
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Mute System
      • From: "I. Savant" <email@hidden>
References: 
 >Mute System (From: Herr Thomas Bartelmess <email@hidden>)
 >Re: Mute System (From: "I. Savant" <email@hidden>)

  • Prev by Date: Re: Convenience initializer not working: "unrecognized selector"
  • Next by Date: Re: What is the status on the New Cocoa 2.0 Books?
  • Previous by thread: Re: Mute System
  • Next by thread: Re: Mute System
  • Index(es):
    • Date
    • Thread