🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16501

(AS) a whose clause problem...

#16501
From: Olivier Berquin
Date: Thu, 11 Sep 2003 07:07
30 lines
1458 bytes
Hello,

I've a problem with a whose clause...

 
    set myColor to "C=75 M=5 J=100 N=0" 
	tell mydoc 
		set NumberOfTextFrame to count of text frame

		repeat with i from 1 to NumberOfTextFrame 
			if name of fill color of text frame i = myColor then 
				set end of ListOfTextFrame1 to text frame i 
			end if 
		end repeat

		set ListOfTextFrame2 to (every text frame whose (name of fill color = myColor)) 
	end tell 



I try first the loop... everything is ok. I've result of 2 text frame's reference.

But, when I try the whose clause, I've an error:
InDesign 2.0.2 got an error: Can't get every text frame of document "test" whose name of fill color = "C=75 M=5 J=100 N=0".

What's wrong ? Grrrrrrr. I "hate" these "whose clause".

TIA

Oli.
Technical Details
Message-ID: <2ccd655f.-1@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!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,a5910cfa70e1f2a5
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-09-11 00:37:51 PST
From: "Olivier Berquin" <olb@microscript.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!supernews.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: (AS) a whose clause problem...
Message-ID: <2ccd655f.-1@webx.la2eafNXanI>
Date: Thu, 11 Sep 2003 00:07:26 -0700
Lines: 33
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit