5 Replies Latest reply on Jun 24, 2009 3:02 AM by Mityura

    InDesign crashes on simple script! Why?

    Mityura
      var myDocument = app.activeDocument
      function Clear_All() {
      app.findTextPreferences = NothingEnum.nothing
      app.changeTextPreferences = NothingEnum.nothing
      app.findGrepPreferences = NothingEnum.nothing
      app.changeGrepPreferences = NothingEnum.nothing
      app.findGlyphPreferences = NothingEnum.nothing
      app.changeGlyphPreferences = NothingEnum.nothing
      }
      Clear_All()
      app.findTextPreferences.findWhat = "^s"
      app.changeTextPreferences.changeTo= "<0020>"
      myDocument.changeText()
      Clear_All()
      In what a mistake or the reason?