Could a Stream Deck be used with Gramps to facilitate data entry?

With further experimentation, I find that the Gramps application “is not scriptable” as far as AppleScript is concerned. I wonder, is it due to an inherent limitation of the GTK GUI, or something else?

Thanks to a post by @emyoulation in a different thread, here’s an example use case:

Now imagine a single script (on a Mac it would be AppleScript, on Windows or Linux something else, I don’t know what) that does all of this: select all, copy, switch to Word, open new document, paste. And the script is attached to a button on the deck. One click on the gramplet, then push the button.

Even without the use of dedicated hardware like a Stream Deck, it would be nice if Gramps were “scriptable” like other apps.