 https://apple.stackexchange.com/questions/207915/drag-to-convert-automator-action-into-applescript 
that's what i was referring to as the "watch me do" (that's the 'watch me do' feature, of automator) and the problem i'm referring to is that when you plug the resulting code into applescript, in many cases, it just says "missing value." particularly and most notably, when the automator (watch me do) result starts with "click static text", or as in the example you linked, "click UI element." neither of those tend to work in actual applescript, despite what the automator spits out. one time i was able to succeed by replacing"click static text 1 of row 9" with "select row 9" but that was only in one case. every other case i have been unable to find what the secret code actually is.