🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #2526

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

#2526
From: Shane_Stanley
Date: Sun, 14 Dec 2008 21:51
13 lines
1642 bytes
You need to use AppleScript's text item delimiters (and reset them when you
finish). Something like this:


set _NewList to _UpDatedList & "Black"
set oldDelims to AppleScript's text item delimiters
set AppleScript's text item delimiters to {" & "}
set _Result to "Colours used in this document are:  " & _NewList
set AppleScript's text item delimiters to oldDelims

-- 
Shane Stanley <sstanley@myriad-com.com.au>
AppleScript Pro Florida, April 2009 <http://scriptingmatters.com/aspro>
Technical Details
Message-ID: <C56BCB0A.4CF2C%sstanley@myriad-com.com.au>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!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: Shane_Stanley@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: [AS] get a list of the used swatch colours in a document
Message-ID: <C56BCB0A.4CF2C%sstanley@myriad-com.com.au>
Date: Sun, 14 Dec 2008 13:51:22 -0800
References: <C56684EF.4CD9D%sstanley@myriad-com.com.au>
Lines: 16
X-IronPort-Anti-Spam-Filtered: true
X-IronPort-Anti-Spam-Result: AvUAAFcORUnL2V24/2dsb2JhbAAIzSSCfg
X-IronPort-AV: E=Sophos;i="4.36,220,1228057200"; 
   d="scan'208";a="364326354"
  by outbound.icp-qv1-irony-out3.iinet.net.au with ESMTP; 15 Dec 2008 06:51:24 +0900
User-Agent: Microsoft-Entourage/12.15.0.081119
Thread-Topic: [AS] get a list of the used swatch colours in a document
Thread-Index: AcleNhpYUDFUZHBQfUSrs6Ngp5Gmzg==
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit