This content has been marked as final. Show 4 replies
var doc = app.activeDocument; // add 3 frames and have their contents read "blah" var Ref1 = doc.textFrames.add(); var Ref2 = doc.textFrames.add(); var Ref3 = doc.textFrames.add(); var myContent = "blah"; Ref1.contents = Ref2.contents = Ref3.contents = myContent; // now give the second frame a name, the name that shows in the Layers palette Ref2.name = "frame2"; // get second frame (already in the document) and change its contents doc.textFrames.getByName ("frame2").contents = "blah blah blah";
1 person found this helpful
// you could also get text frames by their index position // here we change the 3rd frame contents doc.textFrames.contents = "blah blah blah blah blah blah";
Man, this resource is priceless! I'm so glad you guys know what you're doing. This works perfectly. Thanks so much!!