[BUG] copying threaded text-frames.
I discovered an unfortunate bug when trying to copy a group containing threaded text frames from one document to another using the duplicate() command.
function test(){
var doc = app.documents.getByName("Test-1.ai");
doc.activate();
var group = doc.groupItems[0]; // contains two text frames which are threaded to each-other
var otherDoc = app.documents.getByName("Test-2.ai");
var groupCopied = group.duplicate(otherDoc.layers[0], ElementPlacement.INSIDE);
otherDoc.activate();
};
test();
Basically you want to copy something with two threaded textframes into another document, they become un-threaded. Really hard to be aware of if not paying attention and expecting the duplicate() function to work exactly like copy/paste command.
I have an idea of how to deal with it so I hope this will remind me to try it out: I'll look at documenting any threads of text into tags and then reconstructing the threads in the destination document. Ideally the tags would be auto applied and removes so as to not ever get copied and pasted along with an art item into other user documents.
