Indesign script to get position of Note
Hi community,
I am trying to write a script that includes anchoring an object to a pre-existing Note in Indesign.
I can get the anchoring to work, but I cannot figure out how to find the actual position of the Note within the parent textframe/Story, to use the Note as the anchor insertion point.
I have tried checking various properties of the Note, but note.insertionPoints[x] appears to return insertionPoints within the Note text, ditto note.characters. Note.storyOffset appears to return the beginning of the parent story. Note.parent returns a story object, nothing positional.
If it's not possible to anchor to the note itself that's ok, getting the neighboring text would be good enough, but I'm not sure how to get there?
Thanks in advance for your advice!
