Article View: adobe.scripting.indesign
Article #18373Re: AS - 3rd color of gradient impossible
From: Olivier Berquin
Date: Thu, 03 Apr 2003 13:11
Date: Thu, 03 Apr 2003 13:11
25 lines
1522 bytes
1522 bytes
Hi Fernando,
I don't know why your script doesn't work. I use this (and that's works fine):
tell application "InDesign 2.0.2"
set myDocument to active document
tell myDocument
set newGradient to make gradient with properties {name:"TestGradient0", gradient type:linear}
tell newGradient
set properties of gradient stop 1 to {stopcolor:swatch "Black" of myDocument, location:0.0, midpoint:30.0}
set properties of gradient stop 2 to {stopcolor:swatch "Red" of myDocument, location:80.0, midpoint:50}
set properties of gradient stop 3 to {stopcolor:swatch "Blue" of myDocument, location:100.0, midpoint:50}
end tell
end tell
end tell
HTH
Olivier.
Technical Details
Message-ID:
<1de8946d.0@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de8946d.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,68ddb559a235a65b X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-04-03 05:38:24 PST From: "Olivier Berquin" <olb@microscript.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-01!sn-xit-08!sn-xit-09!supernews.com!newshosting.com!news-xfer2.atl.newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: AS - 3rd color of gradient impossible Message-ID: <1de8946d.0@WebX.la2eafNXanI> Date: Thu, 3 Apr 2003 05:11:28 -0800 References: <1de8946d.-1@WebX.la2eafNXanI> Lines: 26 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit