FROM : I. Savant
DATE : Thu Mar 13 11:58:10 2008
On Mar 13, 2008, at 12:10 AM, Christopher Nebel wrote:
> 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.
It really depends on what you're expecting to accomplish, doesn't
it? Does the extra millisecond or two to execute an AppleScript versus
AudioDeviceSetProperty really matter for anything other than
professional audio applications? Would the user notice? Would the
system notice?
If you just want to mute the system volume from an application that
isn't focused, what's wrong with AppleScript? It isn't like you're
going to be muting and un-muting fifty times per second ...
--
I.S.
DATE : Thu Mar 13 11:58:10 2008
On Mar 13, 2008, at 12:10 AM, Christopher Nebel wrote:
> 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.
It really depends on what you're expecting to accomplish, doesn't
it? Does the extra millisecond or two to execute an AppleScript versus
AudioDeviceSetProperty really matter for anything other than
professional audio applications? Would the user notice? Would the
system notice?
If you just want to mute the system volume from an application that
isn't focused, what's wrong with AppleScript? It isn't like you're
going to be muting and un-muting fifty times per second ...
--
I.S.
| 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

