osx - If (system alert or 'ding!') then do something -


is there way like:

if application running dings error (like when hit wrong button in application), perform task.

it's using system sound, makes me assume must calling system in way, i'm wondering if can capture that.

hopefully i'm being clear.

the actual use case want script move down list in application, counting whole way down, when hits bottom applications goes bing because can't go further. once occurs, move on next task , save number.

edit: here's example of application making system error sound. https://www.youtube.com/watch?v=wfe-fvyhqea

i want go down list, 1 one, counting. when hits bottom, , dings, exit loop.


Comments