🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #18547

Re: Move with reference point?

#18547
From: Olav Kvern
Date: Mon, 10 Mar 2003 20:34
22 lines
1246 bytes
Stu--

Move does ignore the current proxy point selected in the Transform palette. Instead, you can simply compensate for the height of the object, as shown in the example below.



tell application "InDesign 2.0.2" 
	set mySelection to selection 
	if (count mySelection) > 0 then 
		set myPageItem to item 1 of mySelection 
		set myBounds to visible bounds of item 1 of mySelection 
		set myHeight to (item 3 of myBounds) - (item 1 of myBounds) 
		move myPageItem to {2.5, 63.5 - myHeight} 
	end if 
end tell 




Thanks,

Ole
Technical Details
Message-ID: <1de83003.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: <1de83003.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,32ab0dc367c85ce0
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-03-10 12:37:48 PST
From: "Olav Kvern" <okvern@adobe.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: Move with reference point?
Message-ID: <1de83003.0@WebX.la2eafNXanI>
Date: Mon, 10 Mar 2003 12:34:35 -0800
References: <1de83003.-1@WebX.la2eafNXanI>
Lines: 20
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit