Article View: adobe.scripting.indesign
Article #1831Re: GREP Search - Save to file
From: Thomas_B._Nielsen
Date: Mon, 19 Jan 2009 21:59
Date: Mon, 19 Jan 2009 21:59
13 lines
918 bytes
918 bytes
Sure it is possible.
Assign your found texts to a variable, write the variable to a text file.
myVar = "";
// add text to variable
myVar += "text\tsecondtext\n";
newFile = new File ("~/Desktop/mycsvfile.csv");
newFile.open('w');
newFile.write(myVar);
newFile.close();
Technical Details
Message-ID:
<59b78e0e.0@webcrossing.la2eafNXanI>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossingReferences:
<59b78e0e.-1@webcrossing.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,36ec78b8a9a344c2 X-Google-Attributes: gidf939a,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit From: Thomas_B._Nielsen@adobeforums.com Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2.glorb.com!newsfeed.news2me.com!newshub.sdsu.edu!webcrossing Newsgroups: adobe.scripting.indesign Subject: Re: GREP Search - Save to file Message-ID: <59b78e0e.0@webcrossing.la2eafNXanI> Date: Mon, 19 Jan 2009 13:59:29 -0800 References: <59b78e0e.-1@webcrossing.la2eafNXanI> Lines: 14 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit