I was wondering if anyone has an idea on how to click on the Send to Project... button / drop down list of the Scrivener Scratchpad.
The problem is that the Scrivener Scratchpad is more or less and app. it can be opened as a floating window with the ⇧⌘ Enter hotkey floating on top of any app. A partial window opens up from the right side of the screen.
The only thing that I can ascertain is that the window title is Scrivener Scratchpad.
What I tried and does not work-
Press Send to Project... in Scrivener Scratchpad window.
click at found image in Scrivener Scratchpad window.
Click at Found Image works for me. I tested on my computer.
Not sure if it was your issue, the drop down icon changes a bit when the Scratchpad window switches from the front to not the front.
When it is the front window, the down arrow has the blue background color, as shown in your OP.
I did not include this icon when I did the screenshot for the image.
thank you Chris for your answer.
on 10.15.7 the script does not work as in nothing happens, whether the scratchpad is in focus or not. I had tried a similar script with UI Browser.
The only reliable solution I could find was that suggested by @martin