🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #1601

Re: Align to page

#1601
From: Kermy
Date: Wed, 28 Jan 2009 21:34
42 lines
1673 bytes
Eric - That worked out swell. How can I get the font formatted, i.e. Arial, 4pt, Rt justified?
My Code:
tell application "Adobe InDesign CS3"
	set myDocument to active document
	set MyDocName to (name of document 1) as string
	tell active document
		--Standardize your coords
		set zero point to {"0p", "0p"}
		set horizontal measurement units of view preferences to points
		set vertical measurement units of view preferences to points
		set ruler origin of view preferences to page origin





		--Define Doc & Box height/width
		set thisDocHeight to page height of document preferences
		set thisDocWidth to page width of document preferences
		set boxHeight to 9
		set boxWidth to 72





		--Position in bottom right corner
		-- using top,left,bottom,right coord system
		set boxBounds to {thisDocHeight - boxHeight, 0, thisDocHeight, boxWidth}

		--Place the boxes
		tell every page



			set myTextBox to make new text frame with properties {geometric bounds:boxBounds, contents:MyDocName}



		end tell
	end tell
	end tell
Technical Details
Message-ID: <59b7b3c0.3@webcrossing.la2eafNXanI>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossing
References: <59b7b3c0.-1@webcrossing.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Thread: f939a,fe5c0c23f23493
X-Google-Attributes: gidf939a,domainid0,public,usenet
X-Google-Language: ENGLISH,ASCII-7-bit
From: Kermy@adobeforums.com
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!news.glorb.com!news2.glorb.com!news.glorb.com!newshub.sdsu.edu!webcrossing
Newsgroups: adobe.scripting.indesign
Subject: Re: Align to page
Message-ID: <59b7b3c0.3@webcrossing.la2eafNXanI>
Date: Wed, 28 Jan 2009 13:34:42 -0800
References: <59b7b3c0.-1@webcrossing.la2eafNXanI>
Lines: 39
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit