Get the Paragraph Style of a parapraph
Hello,
i am trying to write a script that iterate over all paragraphs of a document. My aim is to remove the returns between two paragraphs of the same style.
Therefore I have to read out the Paragaph Style of the single paragraphs I iterate over. I dont know how to read out the the Parapgraph Style. Can some one help me?
This is what I have so far:
function remove_returns() {
for (var i = 0; myDoc.stories.length > i; i++) {
for (var j = 0; myDoc.stories.paragraphs.length > j; j++) {
paraStyle = myDoc.stories.paragraphs
}
}
}
If you have a complete solution for my problem, that would be awesome.
Thanks