0 Replies Latest reply on Dec 30, 2008 12:12 PM by (Kartik_Ganesan)

    Lits of stories in "Galley"

    Level 1
      Hi All,<br /><br />We are implementing a script which should find the paragraph styles applied only on assigned stories. So the stories in Layout view (which is not available in incopy) for editing should not be processed.<br /><br />So far it loops through all the stories:<br /><br />1)How can we put a condition to skip stories which cannot be edited in incopy?<br />--Code Snippet Starts--<br />for(var i = 0; i<app.activeDocument.stories.length;i++)     <br />{<br />     alert(app.activeDocument.stories[i].contents);<br />}<br /><br />--Code Snippet Ends--<br /><br />OR<br /><br />2)Do we need to use any other object to get this to work?<br />The following code returns "0" (zero).<br />--Code Snippet Starts--<br />alert(app.activeDocument.assignments[0].assignedStories.length);<br />[0].storyReference.contents);<br /><br />--Code Snippet Ends--<br /><br />Thanks<br /><br />Kartik