I need to paste sequential rectangular selections from a PNG opened in Preview into a designated Google Doc. I suspect AppleScript is the best candidate for this, but I'm open to using a more familiar language like Python or JS. Here's some rough pseudocode for what I want to do.
Define Hot Keys for CopyPaste and Done File Dialog to select destination Google Doc Open destination doc Set insertion point at end of destination doc Until Done key pressed: Activate Preview window On CopyPaste key pressed: Copy current selection from Preview Paste to destination doc Insert two newlines
The goal is speed up the many copy/paste operations that I'm now doing by Cmd-C, click destination window, Cmd-V, Enter, Enter, click Preview (so I can make the next selection).