🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19010

Re: referencing color problem (AS)

#19010
From: Olivier Berquin
Date: Mon, 27 Jan 2003 10:13
40 lines
1383 bytes
Hi knottulf,

For your color, you have 2 solutions:
The color is a part of your document.
Please, create a color, name it "Red" and try this:


 
tell application "InDesign 2.0.2" 
	set myDocument to active document

	-- 1) 
	set aColor to swatch "Red" of myDocument 

	-- 2) 
	tell myDocument  
		set aColor to swatch "Red" 
	end tell 
end tell 





At the end of your script, you can use:


 
	set top border stroke color of myTable to aColor 
	set left border stroke color of myTable to aColor 
	set right border stroke color of myTable to aColor 
	set bottom border stroke color of myTable to aColor 





HTH

Olivier.
Technical Details
Message-ID: <1de79033.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de79033.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3cbf4510efa89559
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-27 02:38:07 PST
From: "Olivier Berquin" <olb@microscript.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.media.kyoto-u.ac.jp!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: referencing color problem (AS)
Message-ID: <1de79033.0@WebX.la2eafNXanI>
Date: Mon, 27 Jan 2003 02:13:34 -0800
References: <1de79033.-1@WebX.la2eafNXanI>
Lines: 31
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit