3 Replies Latest reply on Dec 2, 2010 1:52 PM by Marijan Tompa [tomaxxi]

    collect contents of specified text frames (CS3 JS)

    jmw107 Level 1

      Hi -- I have what I hope is a very basic question:


      I have the following snippet:


      var doc = app.activeDocument;
      for (var i=0; i<doc.textFrames.length;i++) {
                  var myF = doc.textFrames[i];
      if (myF.strokeWeight==1) {
      var myText = myF.contents;




      When I run this, I get the correct results, but in two different alert boxes. What I need to do is collect all the results into one string. Do I need another loop to collect the contents into one string?


      Any help would be greatly appreciated.