0 Replies Latest reply on Aug 3, 2014 5:51 AM by Johnwhite

    How can I make the script happen?

    Johnwhite Level 1

      Hi everyone

       

      I need a script for inserted tabs in the text:

       

      \\==========================================================

      app.findGrepPreferences = app.changeGrepPreferences = null;

      var firstCol = app.findGrepPreferences("~m*~_? ?([\\u\\l]).+?\\t")

      var secondCol = app.findGrepPreferences("(.+)\\t")

      var lastCol = app.findGrepPreferences("(.+)\\r|((.+)\\t)*+(.)\\r")

       

      if (null + lastCol){

         app.changeGrepPreferences = "\\t\\t" + lastCol

          }

       

      if (firstCol + lastCol){

         app.changeGrepPreferences = first + "\\t" + lastCol

          }

       

      else {

          null

          }

      app.findGrepPreferences = app.changeGrepPreferences = null;

       

      \\==========================================================

       

      I have this idea, but I don't know the syntax.

      How can I make it happen?

       

       

       

      for details please take a look in this link:

       

      How can set a var array for tabs?

       

       

      thanks

      John