🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9020

Re: [AS] Merge duplicate swatches

#9020
From: Jessica_Steffen
Date: Tue, 12 Sep 2006 16:19
11 lines
973 bytes
I'm still learning, but I think that should look something like this:

set myList to every color whose name is not ""
			repeat with i in myList
				set theprop to properties of i
				set theValue to color value of theprop
				set keepColor to (every swatch whose color value = color value of i)
				merge i with keepColor
			end repeat

But it isn't working. What am I doing wrong?
Technical Details
Message-ID: <3bc19458.1@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.isoc.lu!webcrossing
References: <3bc19458.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,d3b8947cced38379
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: Jessica_Steffen@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news.germany.com!news.isoc.lu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS]  Merge duplicate swatches
Message-ID: <3bc19458.1@webcrossing.la2eafNXanI>
Date: Tue, 12 Sep 2006 09:19:41 -0700
References: <3bc19458.-1@webcrossing.la2eafNXanI>
Lines: 12
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit