Article View: adobe.scripting.indesign
Article #17806Re: Selecting a swatch (AS)
From: Dave Saunders
Date: Mon, 12 May 2003 11:54
Date: Mon, 12 May 2003 11:54
7 lines
1263 bytes
1263 bytes
No, that won't work because you can't tell from a script whether the default color is associated with the stroke or the fill. Probably best to throw up a list of swatches for the user to choose from (although that might be annoying if you want to use the same swatch over and over in repeated runs of the script). I use the caps lock key as a switch for this kind of thing. For example, if it's down, use the current value of the property; if it's up, ask the user to choose a new value. (I've not done that yet under OS X, but there must be a way.) Dave
Technical Details
Message-ID:
<1de916ac.1@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1de916ac.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,c022c774edd3a6c9 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-05-12 05:28:08 PST From: "Dave Saunders" <daves@pdsassoc.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: Selecting a swatch (AS) Message-ID: <1de916ac.1@WebX.la2eafNXanI> Date: Mon, 12 May 2003 04:54:22 -0700 References: <1de916ac.-1@WebX.la2eafNXanI> Lines: 13 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit