8 Replies Latest reply on May 28, 2009 2:44 AM by Harbs.

    find every text frame and set first baseline offset...

    dhishok Level 1

      Hi everyone,

       

      I am currently working with InDesign CS2 files and i want to find all text frames and change its first baseline offset to "Cap Height". So I have tried the below syntax and it shows error. Please help me for this.

       

      THanks in advance   

       

      //==================

      #target InDesign4.0

       

      var myFrame = app.activeDocument.textFrame.everyItem();

       

      for (var i=0; i<myFrame.length; i++){
      myFrame[i].textFramePreferences.firstBaselineOffset=1296255087;
      }
      alert ('DONE');

      //==================

       

       

      Regards

      Thiyagu