7 Replies Latest reply on Jan 12, 2011 9:08 AM by Chang_indd

    How to delte empty Style Group from paragraph style palette

    Chang_indd

      Hi Guys,

       

      I want to delete my empty paragraphStyleGroups folder that are Style Group 1and Style Group 3 (see pic) from my palette.

       

      I need a js code for this task.

       

      I have created script but it deletes all the Style group from my panel.

       

      Here is the script:

       

      myDoc=app.activeDocument;

      myStyleGroup=myDoc.paragraphStyleGroups;

      for(p=0;p<myStyleGroup.length;p++)

      myStyleGroup[p].remove();

      Picture 6.png

       

       

      Please suggest!


      Chang