🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #20297

Re: [AS] Coloring a single Character

#20297
From: Peter Boctor
Date: Wed, 17 Jul 2002 22:17
13 lines
1550 bytes
There are a couple ways of doing this. One is by using a whose clause, the other is by using the Search command. 

tell application "InDesign 2.0.1" 
�����tell document 1 
����������set myColor to swatch "Red" 
����������tell text frame 1 
���������������-- first way 
���������������set the fill color of (every character where the contents of it is "y") to myColor 
���������������-- second way 
���������������search for "y" with change attributes {fill color:myColor} 
����������end tell 
�����end tell 
end tell
Technical Details
Message-ID: <ef9b49f.0@WebX.aaQKaf7vad4>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <ef9b49f.-1@WebX.aaQKaf7vad4>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,ef424db366e651a8
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2002-07-17 15:41:20 PST
From: "Peter Boctor" <peter.boctor@adobe.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.wirehub.nl!newsfeed.media.kyoto-u.ac.jp!newsfeed.icl.net!newsfeed.fjserv.net!diablo.netcom.net.uk!netcom.net.uk!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] Coloring a single Character
Message-ID: <ef9b49f.0@WebX.aaQKaf7vad4>
Date: Wed, 17 Jul 2002 15:17:03 -0700
References: <ef9b49f.-1@WebX.aaQKaf7vad4>
Lines: 16
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit