Mouse click is ineffective at insertion point, why?

Sometimes when the macro is fired, the insertion point (from the AppleScript) is not effective, the cursor is not really there (see image) and there is an error pling.

Even with increased pause after the AScr. still the same error.
But if I manually click in the text somewhere (with the cursor blinking) the macro works.

In the image, to the left of the <br> tag, you see a faint vertical line, it's there where the insert is supposed to be, although it doesn't.

Maybe force a mouse click somewhere before the AScr.?

the macro as it is
Send v twwli note ⇢ 070 The World We Live In.kmmacros (8.9 KB)

Probably because you have the sidebar active, not the document itself.

Easiest solution is to test if BBEdit's Paste menu item is enabled -- if not then you can Tab to move from sidebar to document:

Sometimes the easy solutions are the best!
Thank you,
All the best.

This is the updated version of the macro:

Send v twwli note ⇢ 070 The World We Live In.kmmacros (12 KB)