FROM : Christopher Nebel
DATE : Thu Mar 13 05:10:33 2008
On Mar 12, 2008, at 12:23 PM, I. Savant wrote:
> On Wed, Mar 12, 2008 at 2:49 PM, Herr Thomas Bartelmess <thomas.<email_removed>
> > 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
DATE : Thu Mar 13 05:10:33 2008
On Mar 12, 2008, at 12:23 PM, I. Savant wrote:
> On Wed, Mar 12, 2008 at 2:49 PM, Herr Thomas Bartelmess <thomas.<email_removed>
> > 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
| Related mails | Author | Date |
|---|---|---|
| Herr Thomas Bartel… | Mar 12, 19:49 | |
| I. Savant | Mar 12, 20:23 | |
| Jean-Daniel Dupas | Mar 12, 20:31 | |
| Keith Duncan | Mar 12, 23:41 | |
| Christopher Nebel | Mar 13, 05:10 | |
| I. Savant | Mar 13, 11:58 |






Cocoa mail archive

