12 Replies Latest reply on Feb 14, 2013 3:13 PM by Digital-junkie

    Indesign - Rename a Style in a Style Group

    SaaiMurugan_81

      Hi All

       

      I need to change the Name of the Styles using a Script.

       

      If the Style is not in a Group the below script works but if the style is in a Group it is not getting renamed.

        

            var myDoc=app.activeDocument;

            var myStyle=myDoc.paragraphStyles.itemByName(oldStyle);
            alert(oldStyle);
            alert(newStyle);
            myStyle.name=newStyle;

       

      Please HELP!!!

       

      Thanks

      Saai