🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: adobe.incopy.scripting
1 messages
1 total messages Started by Kartik_Ganesan Tue, 30 Dec 2008 20:12
Lits of stories in "Galley"
#54
Author: 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--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads