I asked this question about a month ago, but I did't really ask it right.

I am bringing documents from InDesign to InDesign6. In the process, we are changing style names to make things future compabile by eleminating all spaces. periods, dashes, etc.

So, for example, Heading 1 becomes Heading_1, while Page No. - Left becomes PageNo_Left, etc. Easy enough to do for one or two documents by hand, but I have literally hunders of documents that are going to need this.

So, I'm looking to write a script to more or less automate this process. I think I need something like: