I'm slickening up some automation - invoking Edit on a JavaScript step in a Drafts action on Mac.
This automation is driven by Keyboard Maestro - with much of it being an AppleScript step.
At one point I need to double click on a UI table row. Today I do it by double clicking at a fixed position in the window. I want to eliminate that fragility.
So, how do double click on a UI table row? Or, for others who might stumble across this, how do I double click on any element?
I suppose I could use "Found Image". Obviously that's pretty crappy, too. And the Absolute Position one doesn't help me as I don't know where the row is. (I already use Relative To Window Top Right Corner and wanted to do better than that.)
If I could extract the position of the row I could use that. But I don't know how to.
In this screenshot the only way to get to work with action "To GraphViz" seems to be to double click on it. If there's a better way I'd love to hear it.
(Stretch objectives would be to be able to select by text from the table on the left and also (same thing) the table on the right. Right now I'm doing it by row number.)
"To GraphViz" is my own action - discussed here. There is no built in ability to export in GraphViz .dot file format. That's what my action creates.
And I'm actually trying to handle the general case. That is of any action whose javascript I'm developing. (There is no shortcut for that so I'm building one in Keyboard Maestro / AppleScript UI Scripting.)