🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2568

Re: [AS] get a list of the used swatch colours in a document

#2568
From: KEVINP1
Date: Thu, 11 Dec 2008 01:03
15 lines
1204 bytes
ok, ive got he below, which works well (can it be improved upon Shane)?

The problem I have run into now is if I use "Black" in my document it will not show in the list as a used swatch because it is in the _NotUsed list.

------------
tell application "Adobe InDesign CS3"
	activate
	delete unused swatches of document 1
	set _NotUSED to {"None", "Paper", "Black", "Registration"}
	set _UpDatedList to get (name of swatches of document 1 whose name is not in _NotUSED)
	set _NewList to choose from list _UpDatedList with prompt "Choose"
end tell
--------

Kev
Technical Details
Message-ID: <59b73c94.2@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing
References: <C56684EF.4CD9D%sstanley@myriad-com.com.au>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,cda3f5d182e58a01
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: KEVINP1@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news.glorb.com!news2!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] get a list of the used swatch colours in a document
Message-ID: <59b73c94.2@webcrossing.la2eafNXanI>
Date: Wed, 10 Dec 2008 17:03:12 -0800
References: <C56684EF.4CD9D%sstanley@myriad-com.com.au>
Lines: 18
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit