🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #15234

Re: How do i move a pageItem to a new page in CS?

#15234
From: Jarema
Date: Sat, 13 Dec 2003 02:54
21 lines
1566 bytes
It deppend what you want to reach. If you only want to change a position of the PageItem you can use property GeometricBounds.

REM VBScript - use first parameter for top and second for left
REM Dummy for GeometricBounds
Dim vBounds As Variant
REM top point of the destination
Dim dblTopPosForMove As Double
REM left point of the destination
Dim dblLeftPosForMove As Double

vBounds=myPageItem.GeometricBounds
dblLeftPosForMove= [some value for destination top]
dblLeftPosForMove= [some value for destination left]

myPageItem.GeometricBounds=Array(dblTopPosForMove,dblLeftPosForMove,vBounds(2)-vBounds(0)+dblTopPosForMove,vBounds(3)-vBounds(1)+dblLeftPosForMove)

If you want to move PageItem to other Page/Spread/Layer it doesn't work :( as Olav said (should be fixed as soon as possible - copy and paste generate a new ID for the PageItem what could be a problem for some kind of workflow)

regards

Jarema
Technical Details
Message-ID: <2ccedd11.2@webx.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
References: <2ccedd11.-1@webx.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,2b249677e3ba6d9a
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-12-12 19:07:56 PST
From: Jarema@adobeforums.com
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!webx
Newsgroups: adobe.scripting.indesign
Subject: Re: How do i move a pageItem to a new page in CS?
Message-ID: <2ccedd11.2@webx.la2eafNXanI>
Date: Fri, 12 Dec 2003 18:54:01 -0800
References: <2ccedd11.-1@webx.la2eafNXanI>
Lines: 27
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit