Reply To: Update Indesign DOM after inserting text

#12343160

Hi Felix,

Not sure what content1 and content2 are in your case.
A script like following worked fine for me:

var textFrame = app.selection[0];

alert(textFrame.texts[0].length); // 5
textFrame.texts[0].duplicate(LocationOptions.AT_END, textFrame);
alert(textFrame.texts[0].length); // 10

Regards,
MT

This article was last modified on March 7, 2020

Comments (0)

Loading comments...