I want to split some texts by paragraphstyle,how to select a section text in middle of paragraphstyle A and paragraphstyle B？
Hi! Screenshots please!
... findPreferences ... = style1
myStyle1Finds = myStory.findText()
... findPreferences ... = style2
myStyle2Finds = myStory.findText()
loop .. i
a = myStyle1Finds[i].characters[-1].index + 1;
b = myStyle2Finds[i].characters.index - 1;
a bit of checking here to see that b is > a
then something close to
a = myStory.characters[a].paragraphs;
b = myStory.characters[b].paragraphs;
// paragraphs in between are
myStory.paragraphs.itemByRange(a,b).fillColor = "None" (well you might want to pick some other properties and values).