3 Replies Latest reply on Nov 30, 2014 3:45 AM by Murali_Vetha

    Tab setting Clear

    Murali_Vetha Level 1

      Hi

       

      How can I remove ALL tab settings from the specified paragraph Style. I think line no. 9 is error. Please advice.

       

      var mydoc = app.activeDocument;
      var mypstyle = mydoc.paragraphStyles.everyItem().getElements();
      
      
      for (i=1; i<mypstyle.length; i++)
      {
          if (mypstyle[i].name == "77")
          {
              mypstyle[i].tabStops = TabStops.CLEAR_ALL;
          }
      }
      alert("Done")
      

       

      Regards,

      Vetha