Copy link to clipboard
Copied
Hello,
When I want to duplicate the contents of a text frame to another, and when the source frame contains overset text, the destination frame only contains the text that is visible in the source frame. How can I duplicate all contents including the overset text?
This is the script
var vDoc = app.activeDocument;
for (i=0;i<vDoc.textFrames.length;i++) {
var newTextFrame = vDoc.textFrames[1];
var myMasterTextFrame = vDoc.textFrames;
if (myMasterTextFrame.appliedObjectStyle.name == 'textflow') {
newTextFrame.texts[0].duplicate(LocationOptions.AT_BEGINNING, myMasterTextFrame.texts[0]);
}
}
Regards, Sjoerd
Use the "parentStory" of the frame:
newTextFrame.parentStory.texts[0].duplicate(LocationOptions.AT_BEGINNING, myMasterTextFrame.texts[0]);
Copy link to clipboard
Copied
Use the "parentStory" of the frame:
newTextFrame.parentStory.texts[0].duplicate(LocationOptions.AT_BEGINNING, myMasterTextFrame.texts[0]);
Copy link to clipboard
Copied
Yes! Thanx