Find Paragraph-Style-name in quotes
Hi everybody!
It is a tiny little mess I can't solve this problem:
In an InDesign document somebody created the paragraph-style "Menge" (amount). It's the style for the number of pieces in a table. And this somebody put the name in QUOTES!!! I don´t know why.
Now I want to search for this and other styles and change the font. Unfortunately I didn´t found a way yet.
I tried it like this:
var myStyle = myDoc.paragraphStyleGroups.item('Formatgruppe 1').paragraphStyles.itemByName("\"Menge\"");
alert(myStyle.isValid);
... and like this:
var myStyle = myDoc.paragraphStyleGroups.item('Formatgruppe 1').paragraphStyles.itemByName('"Menge"'); //
alert(myStyle.isValid);
... or like that:
var myStyle = myDoc.paragraphStyleGroups.item('Formatgruppe 1').paragraphStyles.itemByName('^"Menge^"'); //
alert(myStyle.isValid);
If I change the name to another, without quotes, it will be found.
To change that name is not an option, because I get the dokuments every time from somebody who is working with them.
Is there any way to deal with that?
