Article View: adobe.scripting.indesign
Article #18458Re: Text color, a silly question??? (AS)
From: Olivier Berquin
Date: Thu, 27 Mar 2003 11:16
Date: Thu, 27 Mar 2003 11:16
23 lines
1396 bytes
1396 bytes
Liz,
It isn't a silly question: when you make the text frame, you can do something like this:
tell application "InDesign 2.0.2"
set myDoc to active document
tell myDoc
tell page 1
set aFrame to make text frame
tell aFrame -- tell text frame?
set the geometric bounds to {"10.0 mm", "10.0 mm", "60.0 mm", "60.0 mm"}
set contents to "blablabla"
tell paragraph 1 of it -- it = aFrame = text frame
set properties to {fill color:swatch "Red" of myDoc}
end tell
end tell
end tell
end tell
end tell
HTH
Olivier.
Technical Details
Message-ID:
<1de87a4a.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!diablo.theplanet.net!diablo.netcom.net.uk!netcom.net.uk!news.tele.dk!news.tele.dk!small.news.tele.dk!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<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 03:37:52 PST From: "Olivier Berquin" <olb@microscript.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-06!sn-xit-08!supernews.com!easynet-quince!easynet.net!diablo.theplanet.net!diablo.netcom.net.uk!netcom.net.uk!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: Re: Text color, a silly question??? (AS) Message-ID: <1de87a4a.0@WebX.la2eafNXanI> Date: Thu, 27 Mar 2003 03:16:52 -0800 References: <1de87a4a.-1@WebX.la2eafNXanI> Lines: 27 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit