🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18580

Font troubles

#18580
From: Shane Stanley
Date: Fri, 14 Mar 2003 01:57
23 lines
1560 bytes
I'm trying to search for some text based on font, and I need style runs, so
I tried:

tell application "InDesign 2.0.2"
 tell document 1
  set x to applied font of text style range 1 of story 1
  set theRefs to (object reference of every text style range of story 2
whose applied font is x)
 end tell
end tell

But this gives me:

 --> InDesign 2.0.2 got an error: Can't get object reference of every text
style range of story 2 of document 1 whose applied font = font "Times Roman"
of application "InDesign 2.0.2".

It works OK when I filter on other properties. Any thoughts on how to make
this work, or is it a bug? I find the whole "applied font" v "font" business
a bit confusing, and I see that when I ask for properties, so does ID.

-- 
Shane Stanley,  sstanley@myriad-com.com.au
Technical Details
Message-ID: <BA978253.51BE7%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!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,d55e360cbf900fea,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-13 18:08:05 PST
From: Shane Stanley <sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Font troubles
Message-ID: <BA978253.51BE7%sstanley@myriad-com.com.au>
Date: Thu, 13 Mar 2003 17:57:55 -0800
Lines: 29
User-Agent: Microsoft-Outlook-Express-Macintosh-Edition/5.0.6
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit