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

overflowing texframe in indesign cs6

New Here ,
Feb 09, 2013 Feb 09, 2013

Copy link to clipboard

Copied

Hi all,

having a small problem with the script that creates texframe and places all the link name in that textframe

var myDocument = app.activeDocument; var myText = myDocument.textFrames.add(); var links = myDocument.links;   for( var i=0; i<=links.length-1; i++ ){             myText.contents = links.name +"\r"; }   app.activeDocument.stories.everyItem().textFrames.everyItem().fit(FitOptions.FRAME_TO_CONTENT);

also tried this

myText.fit(FitOptions.FRAME_TO_CONTENT);

TOPICS
Scripting

Views

444

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
Enthusiast ,
Feb 09, 2013 Feb 09, 2013

Copy link to clipboard

Copied

LATEST

Hi,

at least you've got to specify the width of the textframe, so that it can be handled:

for example:

var myDocument = app.activeDocument;

var myTextframe = myDocument.textFrames.add({geometricBounds:[0,0,100,100]});

var linkNames = (myDocument.links.everyItem().name).join(', ');  

myTextframe.contents = linkNames;

myTextframe.fit(FitOptions.FRAME_TO_CONTENT)

Hans-Gerd Claßen

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