Skip to main content
John_J_David
Participating Frequently
July 10, 2010
Question

need renaming script for stylesheet

  • July 10, 2010
  • 1 reply
  • 718 views

We have received a project in InDesign CS4 that has many styles. We just want to rename as per our standard and also need to remove prefix and suffix on that tag. (for e.g. "TX" should rename as "Para"). Kindly help me out to do the rename successfully in InDesign CS4.

This topic has been closed for replies.

1 reply

csm_phil
Legend
July 12, 2010

Hi John,

I got the requirement for your "RENAME Paragraph Styles" this is the simple method are as follow us.

var myDoc=app.activeDocument.paragraphStyles;
try{
    myDoc.item("TX").name = "PARA";
    myDoc.item("TX_INDENT").name = "PARA_INDENT";
    }catch(e){};

Regards

C.Sundar (~_~)

John_J_David
Participating Frequently
July 16, 2010

Thanks for sending this script.