Insert Note at text cursor
Please accept my sincere apologies for the very basic question but I've been a scripting beginner for 20 years and am still struggling.
I would like an InCopy script to insert a Note (containing predetermined text) at the cursor insertion point in text. I thought I would simply adapt the InsertNote.jsx sample supplied with the scripting guide but I don't understand how to get the Note to insert at the text cursor position, rather than at the beginning or end of the story.
Can anyone help me, please? I can't seem to find the answer in the scripting guide in either the Text or Notes chapters.
Thanks,
Alistair