@bracewell4213 said:
"… This does combine files, but it loses the text threads in the files after the first one. "
Hi @bracewell4213 ,
I think the trick is to use itemByRange() for the pages object in combination with the duplicate() command.
Example:
Have two documents open. The active one is the source document, the second one is the target document. Let's say we want to "move" ( or copy ) the second and the third page of our source document at the end of the target document without losing the text thread accross spread 1 and spread 2:
The code I used is this:
/*
TEST 1:
Use pages.itemByRange()
with duplicate()
*/
var source = app.documents[0];
var target = app.documents[1];
var fromIndex = 1; // second page in source
var toIndex = 2; // third page in source
var targetPage = target.pages[-1]; // Last page of target document
source.pages.itemByRange( fromIndex , toIndex ).duplicate( LocationOptions.AFTER , targetPage );
The result where the text frames in the target document are still threaded:
Regards, Uwe Laubender ( Adobe Community Expert )
... View more