🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #10093

Fill with Color Swatch

#10093
From: jeffkr
Date: Sat, 08 Jul 2006 02:49
12 lines
1127 bytes
Does anyone know how I can make this below script work? I do have a swatch called "RED" in my document.

The problem is that I also have tint swatches that have the same name? RED 90%, RED 80%, etc. etc. I suppose this is why the script can't figure out what swatch to use?

Is there a way I can get around this so that the script can target only the master RED swatch that is not a tint swatch?

tell application "InDesign CS"
	set properties of selection to {fill color:swatch "RED" of active document}
end tell

Thanks,
jeff
Technical Details
Message-ID: <3bc0d8c1.-1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!feeder.news-service.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,b688401a55a1587c,start
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: jeffkr@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Fill with Color Swatch
Message-ID: <3bc0d8c1.-1@webcrossing.la2eafNXanI>
Date: Fri, 7 Jul 2006 19:49:32 -0700
Lines: 17
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news2.google.com!news.germany.com!feeder.news-service.com!syros.belnet.be!news.belnet.be!news.stben.net!webcrossing