🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #16843

Re: 3 simple Questions to you from a beginner (AS)

#16843
From: Olivier Berquin
Date: Thu, 31 Jul 2003 07:13
27 lines
1457 bytes
Hi Dieter,

I give a "tip": in Indesign, create a new document, create your object on the first page (in this case: a rectangle WITH a border) and run this script:

tell application "InDesign 2.0.2"
	tell document 1
		tell page 1
			get properties of rectangle 1
		end tell
	end tell
end tell

Now, in the result window, you have something like this:
   stroke weight:3.0

You can apply these properties in your script:

tell application "InDesign 2.0.2"
	set myDoc to active document
	tell page 1 of myDoc
		set myrectangle to make rectangle with properties �
			{geometric bounds:{"35 mm", "135 mm", "100 mm", "197.3 mm"} �
				, stroke color:swatch "Black" of myDoc, stroke weight:3}
	end tell
end tell

Oli.
Technical Details
Message-ID: <1dea21f8.2@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!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1dea21f8.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: f939a,9502e9288f24add2
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-07-31 00:37:57 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!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: 3 simple Questions to you from a beginner (AS)
Message-ID: <1dea21f8.2@WebX.la2eafNXanI>
Date: Thu, 31 Jul 2003 00:13:26 -0700
References: <1dea21f8.-1@WebX.la2eafNXanI>
Lines: 29
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit