10 Replies Latest reply on Jun 18, 2009 11:02 AM by Harbs.

    InDesign Quit while running the script

    கற்பனை (Imagine) Level 3

      Hi guys,

       

      Create A new document with one page of content as " ;" then run this below script.

       

      while running the below script in InDesign CS3 5.0.4 (Windows),  Suddenly Application has been closed.

       

      if(app.documents.length == 0)
              {
                  alert("No Documents are Open...");
              }
              else
              {
      app.findTextPreferences = null;
      app.changeTextPreferences = null;

       

      app.findChangeTextOptions.wholeWord = false;
      app.findChangeTextOptions.caseSensitive = false;
      app.findChangeTextOptions.includeMasterPages = false;

       

      app.findTextPreferences.findWhat = " ;";
      app.documents.item(0).findText();
      app.changeTextPreferences.changeTo= "<2009>; ";
      app.documents.item(0).changeText();

         }

       

      Anyone help me, Where the errors occured????

       

      thanks,

      Nagaraj