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!!