4 Replies Latest reply on May 20, 2008 9:02 AM by (Avi)

    [JS] About Paragraph Style

    Level 1
      Hello,

      There is a problem when you use following script. The error is "Object does not support method or property paragraphStyleGroups "

      var myStory = myDocument.pages.item(0).place(File(mypath_new), [myX, myY], undefined, false, true)[0];

      for(var myCounter = 0; myCounter < myStory.textContainers.length; myCounter++)
      {
      myStory.textContainers[myCounter].applyObjectStyle(myDocument.objectStyles.item("2 Legs Leading Top"));

      myStory.texts.item(0).paragraphStyleGroups.item("NYT Byline & Text Styles").paragraphStyles.item("NYT Text");
      }

      Can anybody help me to solve this problem.