2 Replies Latest reply on Sep 8, 2014 10:39 PM by VeluVK

    Find $ symbol in a table

    VeluVK Level 1

      Hi,

       

      Anyone having script or GREP formula for the below:

       

      I need to find all dollar  ($) sign in all tables and replace with $rightindenttab.

       

      Find:         $#

      Replace:    $right indent tab

       

      Regards,

      Velu

        • 1. Re: Find $ symbol in a table
          Sajeev Sridharan Level 4

          Try this,

           

          var myTable = app.activeDocument.stories.everyItem().tables.everyItem().getElements();  
          for(t=0; t<myTable.length; t++)  
          { 
              myTable[t].select();
              app.findGrepPreferences=app.changeGrepPreferences=null;  
              app.findGrepPreferences.findWhat="\\$";
              app.changeGrepPreferences.changeTo  = "~y";
              app.selection[0].changeGrep();
              app.findGrepPreferences = app.changeGrepPreferences = null;
          }
          

           

           

          Vandy

          • 2. Re: Find $ symbol in a table
            VeluVK Level 1

            Hi Vandy,

             

            Thank you so much for the script. it working fine.

             

             

            Regards,

            Velu