paraStyle = myDoc.stories[i].paragraphs[j].appliedParagraphStyle
I suggest to iterate over textStyleRanges instead of paragraphs.
This way in each step you have a part of text ready to remove/replace returns.
It could be simple using:
method inside your loop.
Thanks, that helped.
Next Problem: How can I combine two paragraphs (so that I dont have the return between them)?
Can you help me with this? I just started writing scripts for InDesign. I dont know how two archieve this.
I got it working
Thanks for the changeText() hint.