Heres my use case. I have an old Apple TV connected optically through a semi-smart receiver. The airplay feature on it is garbage and shouldn't have even been marketed as such. Any how with airplay 2 being so awesome and telling Siri where to play music Im looking for a way to turn the receiver on when something is being airplayed to that Apple TV. I can't find an airfoil state that changes when something connects via airplay (airfoil does expose its own states just fine). I checked the dictionary in script editor and there is an active property of airplay devices (boolean) that seems like its what I'd like to watch.
However, my scripting skills suck and I know applescripts will soon die. Is there any way for the iTunes plugin to be updated to support passing the active state of an airplay device as I imagine this has to be a 1st world problem that's rather common; A component based airplay device doesn't fully turn on when selected.
Any insights greatly appreciated!