🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #9438

Re: AS--InDesign CS2--Text Frame

#9438
From: rajeevkumar
Date: Sun, 20 Aug 2006 10:43
38 lines
1356 bytes
Hi Stanley,

I have solved my problem but now problem occurs with text frame in slug area.

See the code below:

============

set docslug to 50
tell application "Adobe InDesign CS2"
	activate
	set TheDoc to the front document
	tell TheDoc
		set TheName to get full name as string
		display dialog TheName
		tell document preferences
			set PW to get page width
			set PH to get page height

			set document slug uniform size to true
			set slug bottom offset to docslug
		end tell
		try
			make text frame with properties {geometric bounds:{PW, 25, PH + 9, 11}, contents:TheName}
		end try
	end tell
end tell
===========

I want text frame bounds should bel like this.

X = 0
Y = 806
Height = 20
Width = 612

Regards
Rajeev Kumar
Technical Details
Message-ID: <3bc14e2f.9@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing
References: <3bc14e2f.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,e6071bd39f8d3dfb
X-Google-Attributes: gidf939a,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: rajeevkumar@adobeforums.com
Newsgroups: adobe.scripting.indesign
Subject: Re: AS--InDesign CS2--Text Frame
Message-ID: <3bc14e2f.9@webcrossing.la2eafNXanI>
Date: Sun, 20 Aug 2006 03:43:57 -0700
References: <3bc14e2f.-1@webcrossing.la2eafNXanI>
Lines: 40
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
Path: arc1-ca.pugleaf.net!g2news2.google.com!news2.google.com!news.germany.com!news.ecp.fr!news.stben.net!webcrossing