🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: adobe.scripting.indesign
Article #19109

Re: Merging documents with code

#19109
From: Dave Saunders
Date: Sat, 18 Jan 2003 12:15
16 lines
1462 bytes
Here's an approach:

Use a temporary library:

tell active spread of active window
 make myItems every page item
end tell
repeat with myItem in myItems
 set myAsset to store myItem in library "TempLib"
 place myAsset on document 2 -- assumes open at correct page
 delete myAsset
end repeat

I've not actually tried that code. Does the place command require the document to be at front? If so, you'll have to manage that too. If the page sizes are the same, the items will appear in the right place in the receiving documents. You may have to manage layer assignments by getting the item layer and then assigning it after placing (that might upset the stacking order, so you might want to group all the items on each layer and then move the groups).

Dave
Technical Details
Message-ID: <1de76f6a.2@WebX.la2eafNXanI>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
References: <1de76f6a.-1@WebX.la2eafNXanI>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f939a,1b33d197901864ee
X-Google-Attributes: gidf939a,public
X-Google-ArrivalTime: 2003-01-18 04:37:44 PST
From: "Dave Saunders" <daves@pdsassoc.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-08!supernews.com!newsfeed.online.be!newsfeed01.sul.t-online.de!t-online.de!WebX
Newsgroups: adobe.scripting.indesign
Subject: Re: Merging documents with code
Message-ID: <1de76f6a.2@WebX.la2eafNXanI>
Date: Sat, 18 Jan 2003 04:15:53 -0800
References: <1de76f6a.-1@WebX.la2eafNXanI>
Lines: 22
MIME-Version: 1.0
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit