2 Replies Latest reply on Jan 23, 2017 5:25 AM by Mohammad Modassir

    What is the script/code for this?

    Mohammad Modassir Level 1

      Hi,

      What is the FindChangeByList script or code for changing the style of Chapternames/headings using the font Times New Roman and font-size 14 pt and leading 10—from “Title Case” to “lowercase”?

        • 1. Re: What is the script/code for this?
          Jump_Over Level 5

          Hi,

           

          text.changecase() is a method not a preferences property --> so you need to set all desired format preferences

          alike:

          app.findTextPreferences.appliedParagraphStyle = ?

          app.findTextPreferences.appliedFont = ?

          app.findTextPreferences.pointSize = ?

          ...

           

          and loop into result of app.findText()

          Inside a loop you need to apply method changecase() to each found occurrences.

           

          Jarek

          • 2. Re: What is the script/code for this?
            Mohammad Modassir Level 1

            I’m not familiar with that kind of scripting. Is there a way to do this by FindChangeByList.txt i.e using notepad.txt only?

             

            Like this example?
            grep {findWhat:"\\u+",appliedFont:"Arial",fontSize:"10.5"} {changeTo:"",appliedFont:"Calibri",fontSize:"12"} {includeFootnotes:true, includeMasterPages:true, includeHiddenLayers:true, wholeWord:false}