6 Replies Latest reply on Mar 20, 2012 2:22 AM by drerol74

    Indesign crash with findGrep()

    drerol74 Level 2



      I have the following problem.:

      in my script findGrep() causes a crash with the following terms:


      app.findGrepPreferences.findWhat = “\\w?”;  // and also with any other character, e.g. “\\L? …


      app.findGrepPreferences.findWhat = “h?”;  // also with s?, w?, … L? …


      app.findGrepPreferences.findWhat = “w?i?”;  // also with W?t? …




      User of my script could enter GREP-Expressions in an Interface. The search results are then highlighted in the document. A huge problem when one of these expressions is entered.



      try {_myPlace.findGrep()} catch (e) {} // does not work.



      How can I tackle this problem? Has anyone an idea?

      (Indesign CS5.5, Mac OS X and Indesign CS5, Windows XP)



      Thanks for help