I just published my new AppleScript. It is UIScanner.
UIScanner explores all UI elements of the opened apps to create a HTML report.
Using the information in the HTML report you can create new AppleScript that use the user interface of an application for MacOS.
You can find the repository of UIScanner in Github