🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.incopy.scripting
Article #54

Lits of stories in "Galley"

#54
From: Kartik_Ganesan
Date: Tue, 30 Dec 2008 20:12
21 lines
1190 bytes
Hi All,

We are implementing a script which should on find the paragraph styles applied only on assigned stories. So those stories in tha Layout view which is not available in incopy for editing should not be processed.

So far it loops through all the stories:

1)How can we put a condition to skip stories which cannot be edited in incopy?
--Code Snippet Starts--
for(var i = 0; i<app.activeDocument.stories.length;i++)	 { 	alert(app.activeDocument.stories[i].contents); }

--Code Snippet Ends--

OR

2)Do we need to use any other object to get this to work?
The following code returns "0" (zero).
--Code Snippet Starts--
alert(app.activeDocument.assignments[0].assignedStories.length);
[0].storyReference.contents);

--Code Snippet Ends--
Technical Details
Message-ID: <59b76427.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kartik_Ganesan@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.incopy.scripting
Subject: Lits of stories in "Galley"
Message-ID: <59b76427.-1@webcrossing.la2eafNXanI>
Date: Tue, 30 Dec 2008 12:12:46 -0800
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit