3 Replies Latest reply on Oct 28, 2014 2:17 AM by BEGINNER_X

    Apply selection grep in the script

    hamdifem Level 1

      only a selected paragraph or selected text frame how do I apply

       

       

      app.findGrepPreferences = app.changeGrepPreferences = null;      

      app.findGrepPreferences.findWhat = "(.+?)~f(.+?)~f(.+?)\r\\s+(.+?)\\s\\s+(.+)";

      app.changeGrepPreferences.changeTo ="$1\t\t$2\r$3\t\t$4\r$5";

      app.activeDocument.changeGrep(); 

      app.findGrepPreferences = app.changeGrepPreferences = null;

       

      Başlıksız-1.jpg