I am trying to Create a paragraph style in the document through InDesign CS5 Server and set the Composer property. This use to work fine under InDesign CS4 Server. But in CS5 it gives Object invalid error on .add property or .itembyname property.
Following is the command I am using in the Script
var myParagraphStyle = mydoc.paragraphStyles.item("MyStyle");
This same command works fine in the Desktop application of InDesign CS5. Is this not supported in CS5 Server any more?