Re: controlling system muting ?
Re: controlling system muting ?
- Subject: Re: controlling system muting ?
- From: Jason Bobier <email@hidden>
- Date: Tue, 08 Jul 2008 23:10:47 -0400
Thanks for the pointers. I'll take a look.
I should note that this isn't an computer emergency, this is a real
emergency, i.e. there is a hurricane coming and you need to be here.
Part of the requirements from the emergency first responders is that
this unmute any muted computers.
Jason
On Jul 8, 2008, at 12:24 AM, Phil wrote:
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