Re: controlling system muting ?
Re: controlling system muting ?
- Subject: Re: controlling system muting ?
- From: Phil <email@hidden>
- Date: Tue, 8 Jul 2008 16:24:04 +1200
On Tue, Jul 8, 2008 at 3:25 PM, Jason Bobier <email@hidden> wrote:
> Has anyone figured out how to control a machine's volume level (specifically
> muting) from code? I know that you can do it from Applescript, but running
> an applescript from code seems to be a rather clunky approach.
>
> This is for emergency notification, so I have to be able to crank the volume
> on the system and then restore it afterwards.
>
Take a read of QA1016:
<http://developer.apple.com/qa/qa2006/qa1016.html>
Also, TN2102, if you haven't already:
<http://developer.apple.com/technotes/tn2002/tn2102.html>
However, I would urge you not to mess around with the user's volume
control, even you think it is an "emergency"---the user may feel very
differently. Your application should play an alert sound, and trust
that the user's system output volume and alert volume are correct for
what they want to hear (although, I have no idea what your application
does; but in the general case, messing around with user settings when
they don't expect it isn't good).
-Phil
_______________________________________________
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