Article View: adobe.scripting.indesign
Article #15292Re: How do i move a pageItem to a new page in CS?
From: Olav_Kvern
Date: Thu, 11 Dec 2003 08:14
Date: Thu, 11 Dec 2003 08:14
45 lines
1598 bytes
1598 bytes
Hi Urho-- Don't fill in the "To" in the method parameters--that won't work. To move a page item "myItem" to an absolute location, use: //JavaScript myItem.move([0, 0]); Rem VBScript myItem.Move Array(0, 0) To move an item to a relative location, use (fill in values for 0,0 or the object won't move at all): //JavaScript myItem.move(undefined, [0,0]); //VBScript myItem.Move , Array(0,0) To move an item to another page "myPage" and then to an absolute location, use: //JavaScript myItem.move(myPage); myItem.move([0, 0]); //VBScript myItem.Move(myPage) myItem.Move Array(0,0) To move an item to another page "myPage" and then peform a relative move (from 0, 0, the default location): //JavaScript myItem.move(myPage); myItem.move(undefined, [0, 0]); //VBScript myItem.Move(myPage) myItem.Move , Array(0,0) Does that help? Thanks, Ole
Technical Details
Message-ID:
<2ccedd11.0@webx.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!fr.ip.ndsoftware.net!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!webxReferences:
<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-11 00:37:37 PST From: Olav_Kvern@adobeforums.com Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!fr.ip.ndsoftware.net!newsfeed.freenet.de!eusc.inter.net!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.0@webx.la2eafNXanI> Date: Thu, 11 Dec 2003 00:14:26 -0800 References: <2ccedd11.-1@webx.la2eafNXanI> Lines: 61 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit