@CJK, I had a play with your brilliant script and came up with something that might be worth developing.
It uses the relevant data in the output of your script to generate an AppleScript tell block.
Here's a quick demo with Logic Pro:
I'm certain there will be circumstances under which it will fail, but I think it might have some potential.
4 Likes