Reply To: Batch opening multiple text boxes in InDesign CS 5.5

#61679
Marc Autret
Member

frankdesign305 said:

Do you have a fix for this?


Try this code instead:

//===================================
var FO = FitOptions.FRAME_TO_CONTENT,
tfs = ([]).concat.apply([], app.activeDocument.stories.everyItem().textContainers),
t, i = tfs.length;
while( i-- ) (t=tfs[i]).overflows && ( t.locked || t.fit(FO) );
//===================================


(Note that the native fit() method can only treat single column frames.)


@+


Marc

This article was last modified on February 22, 2012

Comments (0)

Loading comments...