2 Replies Latest reply on Jun 28, 2015 2:57 AM by beh_gras_beh

    Remove empty charcaterStyleGroups

    beh_gras_beh

      Dear scripters,

       

      I'm trying to delete empty charcaterStyleGroups but I really don't know how.

       

      This is what I have so far.

      var doc = app.activeDocument;
      var charcaterstyles = doc.charcaterStyleGroups;
      for(var i=0;i<charcaterstyles.length;i++)
      {
        if(charcaterstyles[i].();
        {
              charcaterstyles[i].remove()
            }
      }
      

      Greetings