🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18459

Re: Text color, a silly question??? (AS)

#18459
From: Olivier Berquin
Date: Thu, 27 Mar 2003 12:52
19 lines
1322 bytes
Liz,

If you want to change the color of the "entire" text frame (not just the paragraph x of the text frame):

tell application "InDesign 2.0.2"
 set myDoc to active document
 tell myDoc
  tell page 1
   set aFrame to make text frame
   tell aFrame
    set the geometric bounds to {"10.0 mm", "10.0 mm", "60.0 mm", "60.0 mm"}
    set contents to "blablabla"
    set properties of text of it to {fill color:swatch "Red" of myDoc}
   end tell
  end tell
 end tell
end tell

Olivier.
Technical Details
Message-ID: <1de87a4a.1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de87a4a.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,8a8d842890024a50
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-27 05:24:13 PST
From: "Olivier Berquin" <olb@microscript.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!sn-xit-08!supernews.com!diablo.theplanet.net!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.icl.net!newsfeed.fjserv.net!lnewspeer00.lnd.ops.eu.uu.net!emea.uu.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Text color, a silly question??? (AS)
Message-ID: <1de87a4a.1@WebX.la2eafNXanI>
Date: Thu, 27 Mar 2003 04:52:50 -0800
References: <1de87a4a.-1@WebX.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit