This is super exciting. I find this kind of component based application level scripting super useful and interesting. It’s like a souped up easier to read version of Applescript :)
It looks cool, especially that it’s first class within the OS, but I think I still miss tools that allow me to specify GUI components by properties. Can I with Hey?
I’ve previously used tools that would, instead of allowing me to set Selection of View 0 of View 0 of Window 0 to 3, would allow me to, essentially, send click on object in window "Time" with caption "Clock". You could absolutely also navigate down the object tree with indices but it was fragile - if a new tab were to be inserted, instead of selection 3 you’d want 4, everywhere you used it - which is hard to find.
set Selection of View 0 of View 0 of Window 0 to 3
send click on object in window "Time" with caption "Clock"