On Mon, 07 Jul 2008 23:25:34 -0400, Jason Bobier <[EMAIL PROTECTED]> said: >Hey folks, > >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. > >Thanks for any insight! > >Jason > > >
Always worthwhile checking the archives before posting. The technique is pretty well demonstrated here: http://www.cocoabuilder.com/archive/message/cocoa/2008/3/12/201211 m. -- matt neuburg, phd = [EMAIL PROTECTED], <http://www.tidbits.com/matt/> A fool + a tool + an autorelease pool = cool! One of the 2007 MacTech Top 25: <http://tinyurl.com/2rh4pf> AppleScript: the Definitive Guide - Second Edition! <http://www.amazon.com/gp/product/0596102119> _______________________________________________ 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]