So I have a story with x paragraphs. The last one has an anchored picture frame. I want to insert an empty paragraph above it. Thought it would be simple:
app.selection.parentStory.paragraphs[x-1].insertionPoints.contents = "\r";
But the new character just won't show up. I've also tried putting in the last insertion point of the paragraph above (x-2) but that doesn't work either. Maybe InDesign is trying to put it inside of the of the anchored object.
Has anyone else encountered this problem?
It works both ways on my side.
What is your's app.selection?