🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19009

referencing color problem (AS)

#19009
From: knottulf olsen
Date: Mon, 27 Jan 2003 09:35
28 lines
1989 bytes
I can not make my script change the color of a table stroke. When useing get properties for a table which is correctly formatted, I get the stroke color "color id 8 of document "tabelldok.ind" of application "InDesign 2.0.1"". But trying to enter something like this into the set -command, just gives me errors.

Here is my last attempt:

tell application "InDesign 2.0.1"
	set mittprogram to application "InDesign 2.0.1"

	set mydocument to active document
	set myColor to "color id 8 of mydocument of mittprogram"
	set myTable to parent of parent of insertion point 1 of selection of mydocument
	set top border stroke type of myTable to solid
	set left border stroke type of myTable to solid
	set right border stroke type of myTable to solid
	set bottom border stroke type of myTable to solid
	set top border stroke weight of myTable to "0.4 pkt"
	set left border stroke weight of myTable to "0.4 pkt"
	set right border stroke weight of myTable to "0.4 pkt"
	set bottom border stroke weight of myTable to "0.4 pkt"
	--get properties of myTable

	set top border stroke color of myTable to myColor
	--set left border stroke color of myTable to "id 8"
	--set right border stroke color of myTable to "id 8"
	--set bottom border stroke color of myTable to "id 8"



end tell
Technical Details
Message-ID: <1de79033.-1@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3cbf4510efa89559,start
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-27 01:38:10 PST
From: "knottulf olsen" <birkeland@mastertrykk.no>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!fr.clara.net!heighliner.fr.clara.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: referencing color problem (AS)
Message-ID: <1de79033.-1@WebX.la2eafNXanI>
Date: Mon, 27 Jan 2003 01:35:32 -0800
Lines: 32
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit