I use Audirvana Studio for music playback, and I'd like to trigger a certain macro when the playback state changes.
The three possible states are Stopped, Playing and Paused, available in the "player state" property of Audirvana's AppleScript library.
Currently I can determine the playback state like this:
tell application "Audirvana Studio"
ifplayer stateisPlaying then
...
end tell
I'm curious, however, if there is a way for the macro to automatically trigger when the player state changes, rather than the AppleScript above having to check for it. Kind of like a push notification. Is this possible?