Article View: adobe.scripting.indesign
Article #16823Re: PAGEITEMS COPY
From: Olav Kvern
Date: Wed, 30 Jul 2003 21:23
Date: Wed, 30 Jul 2003 21:23
9 lines
1536 bytes
1536 bytes
Iolaire, reyman-- Copy and paste work exactly the way they do in the user interface--which means that you've got to turn to the page (i.e., set the active spread) containing the items to be able to select and/or copy them. (This is only one of the things I hate about using copy/paste. But, for now, there's no other way to do some operations.) Regarding finding the spread--I think it's easier to find all of the page items you want to move by iterating through the AllPageItems collection, then climb up the .Parent tree until you find a spread. Set that spread to the active spread, select the element, then copy, switch to a different document, and paste. Once you're inside a document, you can move the objects from one page to another using the Move method (there's no need to copy/paste, at that point). Thanks, Ole
Technical Details
Message-ID:
<1dea2073.2@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<1dea2073.-1@WebX.la2eafNXanI>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,86125cabd21b391d X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-07-30 14:40:02 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-08!supernews.com!newsfeed.news2me.com!newsfeed.freenet.de!eusc.inter.net!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: PAGEITEMS COPY Message-ID: <1dea2073.2@WebX.la2eafNXanI> Date: Wed, 30 Jul 2003 14:23:54 -0700 References: <1dea2073.-1@WebX.la2eafNXanI> Lines: 19 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit