I'm trying to replace a text from one Character Style into another Character Style (both in subfolders), using the Find/ChangebyList script in InDesign CC (9.3), but I can't make it work. After reading related discussions and after many trial+errors, I ended up with this : grep {findWhat:"(MRP-Rs.\\s*\\d+\\-)"} {appliedCharacterStyle:app.activeDocument.characterStyleGroups.item("Niet aankomen").characterStyles.item("IndiaDetails")} {changeTo:"$1"} {appliedCharacterStyle:app.activeDocument.characterStyleGroups.item("Extra").characterStyles.item("MRP")} {includeLockedStoriesForFind:false, includeLockedLayersForFind:false, includeHiddenLayers:false, includeMasterPages:false, includeFootnotes:true, kanaSensitive:true, widthSensitive:true} //MRP bold 16pt But still, nothing happens. So now I got stuck. My GREP statement looks ok but I can't get the JavaScript to find Character Style "IndiaDetails" and replace it by "MRP". I'm new to JavaScript, can anyone help me with this?
... View more