3 Replies Latest reply on Aug 25, 2009 3:23 AM by Harbs.

    Range.search info

    Dan2205

      Could someone give me info on this method and the parameters it takes? I can't find any info on it anywhere. I'm using CS2 at the moment.

       

      Cheers

        • 1. Re: Range.search info
          Harbs. Level 6

          What version?

           

          The search method in the InDesign DOM was used through CS2. In CS3 and 

          CS4 it's been replaced by Text.findText() and Text.changeText();

           

          Unless you are referring to the String.search() method with accepts a 

          RegEx...

           

          Harbs

          • 2. Re: Range.search info
            Dan2205 Level 1

            Hi,

             

            Thanks for your reply, i'm using CS2 version 4.

             

            Cheers

            • 3. Re: Range.search info
              Harbs. Level 6

              Here's from the OMV...

               

              Text.search (for: string , wholeWord: Boolean , caseSensitive: 

              Boolean , replacingWith: string , withFindAttributes: Object , 

              withChangeAttributes: Object ):Array of Text

              Adobe InDesign CS4 (4.0) Object Model

              Look for occurrences of text that matches specific criteria

              for: Data Type: string

              What to look for (Optional)

              wholeWord: Data Type: Boolean

              If true, then disregard text embedded within a larger word (Optional)

              caseSensitive: Data Type: Boolean

              If true, then search only for text that matches case (Optional)

              replacingWith: Data Type: string

              What to replace the found text with, either a string or a special 

              character (Optional)

              withFindAttributes: Data Type: Object

              A record of find preference settings to use (Optional)

              withChangeAttributes: Data Type: Object

              A record of change preference settings to use (Optional)

               

              Harbs