If we find something in indesign by default the fined text will get select.
I m finding paragraph style Head
Now i want to copy the text between from 1st Head occerence to Next Head.
For that i need to select the text between two occerences.
If u have any ideas share with me.
Thanks and Regards,
Well, this is really dirty way to do it, but it works.
app.findTextPreferences = NothingEnum.nothing; app.changeTextPreferences = NothingEnum.nothing; app.findTextPreferences.appliedParagraphStyle = "Heading 2"; var myFind = app.activeDocument.findText(); var myFindText = Array(); for(var i = 0; i < myFind.length-1; i++) myFindText.push(app.activeDocument.stories.item(myFind[i].parent.index).characters.itemByRange(myFind[i].characters.item(-1).index+1,myFind[i+1].characters.item(0).index-1).contents); alert(myFindText);
myFindText is array, so you can retrieve found text like this: myFindText for first item and so on...
How would I take the found text and convert it to a table?