• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

[ID5,JSX] Duplicate texts of textFrame with overflow

Participant ,
Sep 06, 2012 Sep 06, 2012

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

TOPICS
Scripting

Views

732

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Advisor , Sep 06, 2012 Sep 06, 2012

Use the "parentStory" of the frame:

newTextFrame.parentStory.texts[0].duplicate(LocationOptions.AT_BEGINNING, myMasterTextFrame.texts[0]);

Votes

Translate

Translate
Advisor ,
Sep 06, 2012 Sep 06, 2012

Copy link to clipboard

Copied

Use the "parentStory" of the frame:

newTextFrame.parentStory.texts[0].duplicate(LocationOptions.AT_BEGINNING, myMasterTextFrame.texts[0]);

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Participant ,
Sep 06, 2012 Sep 06, 2012

Copy link to clipboard

Copied

LATEST

Yes! Thanx

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines