Quantcast
Viewing all articles
Browse latest Browse all 87561

Re: written with a specific paragraph style Can I transfer data

  1. app.findGrepPreferences = app.changeGrepPreferences = null;   
  2. app.findGrepPreferences.findWhat = ".+";   
  3. app.findGrepPreferences.appliedParagraphStyle = "test"; //mention your paragraph style name 
  4. var mySearch = app.activeDocument.findGrep();   
  5. myFrame = myDoc.textFrames.add ({geometricBounds:[".5in",".5in","5.5in","5.5in"]});//textframe will created in the first page of your InDesign document 
  6. myFrame.insertionPoints[-1].contents = "CONTENTS\r"
  7. for(i=0; i<mySearch.length; i++)   
  8. {   
  9.     var mySearchContent = mySearch[i].contents; 
  10.     mySearchContent = mySearchContent.replace(/(\d+)(\t.+?\t)(.+?)(\t\d+)/g, '$1-$3'); 
  11.     myFrame.insertionPoints[-1].contents = mySearchContent + "~f" // THİS ERROR  1-A~f2-A~f3-A....
  12. app.findGrepPreferences = app.changeGrepPreferences = null;

Viewing all articles
Browse latest Browse all 87561

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>