Question
Indesign CS3. How to find "all caps" format text and change it to real uppercase?
I need to find all the text strings with all caps local formatting in an InDesign CS2 document, in order to replace it with real uppercase. I found this in the forum that can do the job, but it is not working in CS3 no matter how I change, anyone help????<br /><br />app.findPreferences = app.changePreferences = null; <br />var myResult = app.activeDocument.search( '', false, false, undefined, {capitalization:Capitalization.allCaps }) <br />for ( i = myResult.length-1; i >= 0 ; i-- ) <br /> makeUpperCase( myResult ); function makeUpperCase ( myText ) <br />{ <br /> try // footnotes may disturb the job in InDesign CS2 <br /> { <br /> myText.capitalization = Capitalization.normal; <br /> myText.changecase( ChangecaseMode.uppercase ); <br /> myText.insertionPoints[-1].contents = '<\\UC>'; <br /> myText.insertionPoints[0].contents = '<UC>'; <br /> } <br /> catch(e) {} <br />}
