🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.scripting.indesign
3 messages
3 total messages Started by Marco Lugli Mon, 19 Jan 2009 21:40
GREP Search - Save to file
#1829
Author: Marco Lugli
Date: Mon, 19 Jan 2009 21:40
4 lines
733 bytes
Hello,
I wonder if it's possible to do a GREP search in an Indesign CS3 document, then save the results to file (like .csv).
Thanks
Marco Lugli
Re: GREP Search - Save to file
#1831
Author: Thomas_B._Nielsen
Date: Mon, 19 Jan 2009 21:59
13 lines
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();
Re: GREP Search - Save to file
#1834
Author: Marco Lugli
Date: Tue, 20 Jan 2009 07:34
1 lines
613 bytes
Thanks Thomas for the solution
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads