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
Author: Marco Lugli
Date: Mon, 19 Jan 2009 21:40
Date: Mon, 19 Jan 2009 21:40
4 lines
733 bytes
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
Author: 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();
Re: GREP Search - Save to file
Author: Marco Lugli
Date: Tue, 20 Jan 2009 07:34
Date: Tue, 20 Jan 2009 07:34
1 lines
613 bytes
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