Answered
Simple Scripting Help: Find Text Box, Apply Object Style
Hi All, I'm new to scripting and I wrote a simple script to find the 7th text box on a page and apply the Object Style, "Text 2A". However, I can't seem to get it to work. Any help you can give me is greatly appreciated!
var curDoc = app.activeDocument;
curDoc.pages[0].textFrames[6];
curDoc.select (curDoc.pages[0].textFrames[6]);
app.selection[0].applyObjectStyle(curDoc.objectStyles.item("Text 2A"),true);
