Article View: adobe.scripting.indesign
Article #16928Cannot set a drop shadow color in a script?
From: Christopher Drum
Date: Mon, 21 Jul 2003 18:52
Date: Mon, 21 Jul 2003 18:52
13 lines
1641 bytes
1641 bytes
A very simple start of a script here...
try
tell application "InDesign 2.0.2"
set properties of selection of document 1 to {shadow blend mode:multiply, shadow mode:drop, shadow opacity:75.0, shadow color:{color space:{cmyk}, color model:{process}, color value:{100, 0, 0, 0}}, shadow blur radius:25.0, shadow x offset:2.0, shadow y offset:2.0, feather corner type:diffusion, feather mode:none, feather width:9.0}
end tell
end try
Of particular note, see the shadow color settings? This should make a 100% C shadow (simply for demo purposes here). This script works just right for me, except it refuses to set the shadow color to cyan. I can change and apply any of the other settings, but the shadow ALWAYS comes out as 100% K. What gives?
Tried to "set color value of shadow color of selection of document 1 to {100, 0 , 0, 0}" and it says "This color cannot be edited." What in the world?!
Christopher Drum
Technical Details
Message-ID:
<1dea0111.-1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,7399ed3663788edf,start X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-21 12:08:26 PST From: "Christopher Drum" <christopher.drum@fds.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!priapus.visi.com!news-out.visi.com!petbe.visi.com!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Cannot set a drop shadow color in a script? Message-ID: <1dea0111.-1@WebX.la2eafNXanI> Date: Mon, 21 Jul 2003 11:52:52 -0700 Lines: 23 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit