Can anyone help translate this AppleScript to JXA? I’m missing something that’s probably obvious…
tell application "System Events"
tell process "Keyboard Maestro"
get focused of text field 1 of scroll area 3 of splitter group 1 of group 1 of window "Keyboard Maestro Editor"
end tell
end tell
Something like this, but this doesn’t work:
var _kmProc = Application("System Events").processes["Keyboard Maestro"];
return _kmProc.windows[0].groups[0].splitterGroups[0].scrollAreas[2].textField[0].focused;
Thanks. He's not running Sierra, I guarantee you And neither am I, for the same basic reasons.
it takes a small flood of them to catch any attention.
That really ticks me off. They were all gaga about JXA at the 2014 conference, and since then have almost pretended it doesn't exist. There isn't even a sub-forum dedicated to it on Apple's developer forum. And almost no questions, in any of the sub-forums.
Maybe we really are in the vast minority. Bleeding edge - I've spent most of my developer life there, so why should this be any different?