Article View: adobe.scripting.indesign
Article #18771Re: page from 1 document 2 an other
From: Ben Dupre
Date: Tue, 04 Mar 2003 15:32
Date: Tue, 04 Mar 2003 15:32
17 lines
2560 bytes
2560 bytes
Yes Laurent, Thanks for the idea. Ole is right about copy and paste having serious limitations. However the alternative is ridiculously cumbersome. There really should be an easy way to copy a range of pages or page items (with all attributes intact) from one place to another. myDoc2.pages.item(x)=myDoc1.pages.item(x) Took me a day, but I finally got a script working well enough to move 146 pages worth of text, tables, and graphics from one document to another. The bummer is that I have to do this at all. The reason I needed this is because I've got lots of documents with power tables in them. The "plug-in-data" won't clean out. Every time we open a file that was created on a copy of ID that had this plug in, ID gives a warning. You can check a box that says "remove missing plug-in data" but if you do, the file gets corrupted and crashes InDesign. We're okay if we ignore it, but ID makes the file "untitled" when opening and I worry about the long-term health of these files. What we've been doing is copying and pasting all items into a new file to clean things up. The script I wrote helps with this, but you've got to babysit while it runs. There are some odd things that wreck it. If I had the time I'd take Ole's suggestion and write something more bulletproof but I think all of our old documents will eventually be revised by the manual cut-and-paste method before I can get 'round to that. Overall, scripting is great. But many tasks take longer to script than to do by traditional methods. I was lucky enough to have an intern for a year and a half who was a very good programmer. He taught me most of what I know on the subject. But now that I've got to do the programming myself, scripts take a lot longer to write and debug. But I'm getting smarter every day! Ben
Technical Details
Message-ID:
<1de7f166.13@WebX.la2eafNXanI>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebXReferences:
<3E54F73A.2060305@comidoc.fr>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f939a,354e3e03a5255de6 X-Google-Attributes: gidf939a,public X-Google-ArrivalTime: 2003-03-04 07:37:59 PST From: "Ben Dupre" <bdupre@removethis.sauer-danfoss.com> Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-06!sn-xit-08!supernews.com!newsfeeds.sol.net!news.maxwell.syr.edu!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!WebX Newsgroups: adobe.scripting.indesign Subject: Re: page from 1 document 2 an other Message-ID: <1de7f166.13@WebX.la2eafNXanI> Date: Tue, 4 Mar 2003 07:32:03 -0800 References: <3E54F73A.2060305@comidoc.fr> Lines: 39 MIME-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 8bit