This is not a forum to request "free scripts". People are likely to *assist* you at a point where you run in to problems, but a bit more effort from your own side is highly preferred.
yes i agree i should put some effort from my side but I have already checked but i did not found copy paste method for this. I was expecting if someone could reply the method name which is "duplicate".
But after two to three hours of study from past three days I learn duplicate method which i never thought it could be possible in different documents.
Question: Although it works perfectly but can we do this using array. I need only hint or syntax..
var myDoc1 = app.documents.itemByName("doc-main.indd");
var myDoc2 = app.documents.itemByName("doc-to-copy.indd");
var myFrame1 = myDoc1.pageItems.itemByID(345607); // page 5
var myFrame2 = myDoc1.pageItems.itemByID(345725);
var myFrame3 = myDoc1.pageItems.itemByID(345799);
var myFrame4 = myDoc1.pageItems.itemByID(345873); // page 8 and so on till page 20
var myDuplicate1 = myFrame1.duplicate(myDoc2.pages); //p5
var myDuplicate2 = myFrame2.duplicate(myDoc2.pages);
var myDuplicate3 = myFrame3.duplicate(myDoc2.pages);
var myDuplicate4 = myFrame4.duplicate(myDoc2.pages); // page 9 and so on till page 20