1 Reply Latest reply on Mar 17, 2010 11:47 PM by கற்பனை (Imagine)

    Find and replace for multiple thin space with enter...

    subha oviya Level 1

      Hi,

       

           Im new to the InDesign Scripting.  I need to replace multiple thin space with enter to single enter.  Dont know how to do.  Pls someone help me.

       

      Thanks in advance,

      Sudha

        • 1. Re: Find and replace for multiple thin space with enter...
          கற்பனை (Imagine) Level 3

          Hi Sudha,

           

          Use the Sample code,

           

          app.findTextPreferences = null;
          app.changeTextPreferences = null;

           

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

           

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

           

          app.findTextPreferences = null;
          app.changeTextPreferences = null;

           

          Regards,

          Nagaraj