This content has been marked as final. Show 4 replies
Indeed. Text doesn't have a paragraphStyleGroups property. So the error is to be expected. What are you trying to do?
I am trying to flow the text first using command place. Then i need to apply object style to text frame and paragraph style to the text. I am getting perfect result for object style. But i am getting error for paragraph style.
I know we can include paragraph style as a part of object style and i did that. Still when i am applying the object style on text frame the paragraph style is Basic (Default). So that is why i want to apply paragraph style differently. Not as a part of object style.
This might be bug in ID.
So you need:
myStory.texts.item(0).appliedParagraphStyle = myDocument.paragraphStyleGroups.item("NYT Byline & Text Styles").paragraphStyles.item("NYT Text");
Yes i need this.
Thank you dave.