🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14841

Re: Creating large page-refrenced index

#14841
From: Shane_Stanley
Date: Tue, 13 Jan 2004 22:17
28 lines
1705 bytes
On Jan 14, 2004, at 8:59 AM, McKinley Media wrote:

>
> 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?

That's how you do it, yes.
>
> 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.

Probably because you removed the reference to document 1.

--
Shane Stanley <sstanley@myriad-com.com.au>
Technical Details
Message-ID: <465C49F0-4616-11D8-B512-003065D61B90@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!feed1.news.be.easynet.net!newsfeed.arcor-online.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:37:52 PST
From: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!skynet.be!skynet.be!feed1.news.be.easynet.net!newsfeed.arcor-online.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: Creating large page-refrenced index
Message-ID: <465C49F0-4616-11D8-B512-003065D61B90@myriad-com.com.au>
Date: Tue, 13 Jan 2004 14:17:29 -0800
References: <2ccf5a44.-1@webx.la2eafNXanI>
Lines: 32
X-Mailer: Apple Mail (2.609)
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit