Article View: adobe.scripting.indesign
Article #17928Re: Fill color of a row (AS)
From: Olivier Berquin
Date: Thu, 08 May 2003 07:19
Date: Thu, 08 May 2003 07:19
73 lines
2532 bytes
2532 bytes
Hi again,
I've wrote this script (no test, be carrefull):
tell application "InDesign 2.0.2"
set mydoc to active document
tell mydoc
set mySelection to selection
set properties of row 1 of item 1 of selection to �
{vertical justification:bottom �
, fill color:swatch "Paper" of mydoc �
, height:"6.5", bottom inset:"1"}
set properties of row 2 of item 1 of selection to {fill color:tint id 155 of mydoc}
end tell
end tell
1) When I try to apply the "Paper" swatch, the tint doensn't matter: paper is paper ;-)
2) When I try to apply an other swatch AND a tint, the tint syntax doesnt' works so,
3) the only way to do this is to use the {fill color:tint id 155 of mydoc}
I try so many differents way... and I just find this:
tell application "InDesign 2.0.2"
activate
set mydoc to active document
tell mydoc
set myBlack to item 1 of swatch "Black"
set properties of row 2 of item 1 of selection to {fill color:myBlack}
set properties of row 2 of item 1 of selection to {fill tint:10}
end tell
end tell
Be carrefull: I created some tint of "Black": 10, 20 and 30%.
When I use
set myBlack to swatch "Black"
I've something like this: {color id 8 of document "doc_table", tint id 154 of document "doc_table", tint id 155 of document "doc_table", tint id 223 of document "doc_table"}
I try this:
set myBlack to item 1 of swatch "Black"
and that's works... only if the swatch "Black" is the first in the swatches palette. How can I find the "Black" color and not the "Black" tints ??? With a "whose" like: set myBlack to item 1 of swatch "Black" whose is not tint.
Any idea ?
TIA
Oli.
Technical Details
Message-ID:
<1de90365.9@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de90365.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f939a,ee08932ee4f528f6 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-08 00:38:33 PST From: "Olivier Berquin" <olb@microscript.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!64.152.100.70.MISMATCH!sjc70.webusenet.com!news.webusenet.com!cyclone.bc.net!logbridge.uoregon.edu!xmission!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Fill color of a row (AS) Message-ID: <1de90365.9@WebX.la2eafNXanI> Date: Thu, 8 May 2003 00:19:03 -0700 References: <1de90365.-1@WebX.la2eafNXanI> Lines: 70 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit