Quantcast
Channel: Adobe Community : Popular Discussions - InDesign Scripting
Viewing all articles
Browse latest Browse all 15932

Need all textframes in equal width and height

$
0
0

Hi All,

 

Request:

 

I need all the text frames in equal width and equal height in my active document.

 

Trying code:

 

var myDoc = app.activeDocument

var myTF = myDoc.textFrames.everyItem().getElements()

alert(myTF.length)

 

app.activeDocument.viewPreferences.horizontalMeasurementUnits = app.activeDocument.viewPreferences.verticalMeasurementUnits = MeasurementUnits.MILLIMETERS;

 

 

for(k=0; k<myTF.length; k++)

{

    myTF[k].geometricBounds[3] = myTF[k].geometricBounds[1]+125    //Doubt this line

    alert(myTF[k].geometricBounds[3])

    }

 

Could anyone give solution for my request.

 

Thanks

Beginner_X


Viewing all articles
Browse latest Browse all 15932

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>