OK, well, after some regex juggling, I got this working about 90% reliable. And the only caveat is the log not being updated "immediately" after every action.
Hence, about 90% of the time I dock, almost instantly upon touch down, the VA commands picks up the log entry and notifies me, "Dock successful, contacting station computers..." and runs the EDDI dock event. Same with undocking (I wrote a little VA routine for undocking which "unlocks" actions that shouldn't/can't take place while docked, like deploying weapons, supercruise, chaff, heat sinks, messing with the landing gear, etc.; that way they stay in sync with the game).
What happens the other, roughly, 10% of the time is that I dock and "nothing happens". So I'll go to the Mission Boards and browse around a bit. Then after a little while, apparently, the log updates and I get the "Dock successful..." notification and everything runs. Same with undocking.
made a "manual" command version of Docking and Undocking, in case of these failures, so I'm covered. Just wish the client was consistent in updating the log quickly.