🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #14691

Still trouble searching on a page

#14691
From: McKinley_Media
Date: Wed, 21 Jan 2004 16:34
17 lines
1195 bytes
I'm trying to search a page for a given character style.

Is there something wrong with the syntax or something? The character style exists. The page exists. There is text on the page that matches that character style.

Here's the code I have.

	set myCstyle to character style "Doctors-p" of active document

	set myParagraph to search page 50 of active document with find attributes {applied character style:myCstyle}

The error message I get is:

InDesign CS got an error: page 50 of active document doesn't understand the search message.

Help.

--Will
Technical Details
Message-ID: <2ccf7e0a.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,84396a94333ea3f9,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2004-01-21 08:38:01 PST
From: McKinley_Media@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.tpinternet.pl!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Still trouble searching on a page
Message-ID: <2ccf7e0a.-1@webx.la2eafNXanI>
Date: Wed, 21 Jan 2004 08:34:45 -0800
Lines: 21
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit