Is there anyway to sleep/pause/wait in an embedded script action?
I'm scripting AirFoil as per this thread but some actions are still overrunning each other.
My current task is to setup Airfoil for playing music (versus whatever I last used it for) - I am therefore disconnecting from all speakers (because I don't know which might be currently active or not), setting their desired volumes, then connecting to those where I want music playing. This works for the local speaker, but my Airport Express speakers are not reconnecting after I've set the volume, which matches the problem I had when doing this through regular Airfoil actions.
Each individual action works if I comment out the rest, so it's definitely an issue with timing.
Any ideas?
Peter