🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19286

Change Color Space (AS)

#19286
From: rob day
Date: Fri, 03 Jan 2003 14:34
28 lines
1477 bytes
Hi,
I have a simple Quark script which changes the color space of every color, which I'm trying to convert for InDesign:

tell application "QuarkXPress� 4.11"
	tell document 1
		repeat with a from 1 to count of color specs
			if locked of color spec a is false then
				set color type of color spec a to RGB type
				set separation of color spec a to true
			end if
		end repeat
	end tell
end tell

I can't get past the locked colors in ID--here's what I've tried;

tell application "InDesign 2.0.2"
	tell document 1
		repeat with a from 1 to count of swatches
			if locked of swatch a is false then
				set color space of swatch a to rgb
  	end if
		end repeat
	end tell
end tell

Any help would be appreciated.
Thanks
Technical Details
Message-ID: <1de7379f.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,e7b787ca507c5117,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-03 06:38:35 PST
From: "rob day" <vevans@mediaone.net>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Change Color Space (AS)
Message-ID: <1de7379f.-1@WebX.la2eafNXanI>
Date: Fri, 3 Jan 2003 06:34:47 -0800
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit