Quantcast
Viewing all articles
Browse latest Browse all 12845

Applying a paragraph style to text frames in document

Hello everyone! Not sure what I am doing wrong here, and I am having trouble finding examples of this online, so I thought I would ask.

 

 

 

 

var docRef = app.activeDocument;

 

var textRef = docRef.textFrames;

 

var paraStyle = docRef.paragraphStyles.getByName ("LeftIndent");

 

var iCount = textRef.paragraphs.length; //This is the error that shows up.

 

for(var i=0; i<iCount; i++) {

 

paraStyle.applyTo(textRef.paragraphs[i], true);

 

}

 

redraw();

 

 

 

 

 

 

Thanks in advance!!


Viewing all articles
Browse latest Browse all 12845

Trending Articles



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