🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #17930

Re: Applying stroke actions (AS)

#17930
From: Olivier Berquin
Date: Thu, 08 May 2003 10:35
29 lines
1218 bytes
Hi Liz,

I see 2 errors in your script:
1) use "set mySel to item 1 of selection" instead of "set mySel to selection", because selection is always a list.
2) don't use {} after a "set".



 
tell application "InDesign 2.0.2" 
	activate 
	set myDoc to active document 
	tell myDoc 
		set mySel to item 1 of selection 
		tell mySel 
			set stroke color to swatch "Black" of myDoc 
			set stroke weight to 0.5 
			set stroke type to solid 
		end tell 
	end tell 
end tell





HTH

Oli.
Technical Details
Message-ID: <1de90b3e.0@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de90b3e.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,3810593e99c5a15a
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-05-08 03:38:08 PST
From: "Olivier Berquin" <olb@microscript.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-09!supernews.com!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Applying stroke actions (AS)
Message-ID: <1de90b3e.0@WebX.la2eafNXanI>
Date: Thu, 8 May 2003 03:35:25 -0700
References: <1de90b3e.-1@WebX.la2eafNXanI>
Lines: 26
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit