Quantcast
Channel: Adobe Community: Message List - InDesign Scripting
Viewing all articles
Browse latest Browse all 37788

Re: Help with Combine Docs script

$
0
0

Hi, myDavey,  try the following code, always keep the original spread, not change:

function combine() {    var docsSpreads = [];    var pgCount;    var newDoc = app.documents.add();    newDoc.documentPreferences.allowPageShuffle=false////    for (var i=0; i<myFiles.length; i++) {        var myDoc = app.documents.item(myFiles[i])        docsSpreads[i] = myDoc.spreads.everyItem().getElements();    }    for (var v = 0; v < myFiles.length; v++) {        for (var i=0; i<docsSpreads[v].length; i++) {            docsSpreads[v][i].duplicate( LocationOptions.AFTER, newDoc.spreads.lastItem() );        }    }}

 

wish you good luck!


Viewing all articles
Browse latest Browse all 37788

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>