🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14835

Re: Creating large page-refrenced index

#14835
From: McKinley_Media
Date: Tue, 13 Jan 2004 21:59
14 lines
1372 bytes
OK,

I put that search code in there, setting the result to a variable so I could then reference that variable. Is there some other way to do this? How do I extract the results from the search if not this way?

		set find preferences to nothing
		set change preferences to nothing
		set myPstyle to paragraph style "County" of myDoc
		set theResult to search (every item of all page items of page P whose class is text frame) with find attributes {applied paragraph style:myPstyle}
		if P is 1 then
			set myFirstCounty to theResult(first item)
		end if

I get this error:
InDesign CS got an error: every item of all page items of page 1 whose class = text frame doesn't understand the search message.
Technical Details
Message-ID: <2ccf5a44.3@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccf5a44.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,12300b1d3de5c250
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-13 14:08:05 PST
From: McKinley_Media@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Creating large page-refrenced index
Message-ID: <2ccf5a44.3@webx.la2eafNXanI>
Date: Tue, 13 Jan 2004 13:59:39 -0800
References: <2ccf5a44.-1@webx.la2eafNXanI>
Lines: 19
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit