(inserted into another file indesign indesign on a specific page)
Hey all !
I'm trying using Script:
1. in a document already open indesign:
var myDoc = app.activeDocument;
2. place another file. indd
app.open(File("/c/myTestDocument.indd")); ----> code and not well
3. also be inserted in a specific page, (eg on page 12 of my active.Document or any other page)
var addPages = 2;
// Page number 2 is item(1), since page number 1 is item(0):
var addAfter = app.activeDocument.pages.item(2);
to see if I can give Script code to get the result.
thank you very much hope to answer please.
Raul.
how to export?
multiple pages ( Paginate Pages / Spreads )
var myDoc = app.activeDocument;
var myPage = myDoc.pages.item(0);
myPage.place(File("/c/myTestDocument.indd")); ---> only one page ( my document indd = two page)
What would SCRIPT code right?
var myDoc = app.activeDocument;
var myPage = myDoc.pages.item(0);
myPage.placemultiple(File("/c/myTestDocument.indd")); not right
Very thanks, this answer close theme. (if the result is right)
This one's a bit weird:
var myDoc = app.activeDocument;
app.importedPageAttributes.pageNumber = 1;
var myPage = myDoc.pages.item(0);
myPage.place(File("/c/myTestDocument.indd"));
app.importedPageAttributes.pageNumber = 2;
var myPage = myDoc.pages.item(1);
myPage.place(File("/c/myTestDocument.indd"));
Harbs
answer is correct but also we're add that the pages one attribute more as masterSpreads.
For e.g.
var myDoc = app.activeDocument;appliedMaster = app.activeDocument.masterSpreads.item("B-Master")
app.importedPageAttributes.pageNumber = 1;
var myPage = myDoc.pages.item(0).; -> Not right ¿ How would it be right?
myPage.place(File("/c/myTestDocument.indd"));
app.importedPageAttributes.pageNumber = 2;
var myPage = myDoc.pages.item(1);
myPage.place(File("/c/myTestDocument.indd"));
What would SCRIPT code right?
Thanks! and Cheers
North America
Europe, Middle East and Africa
Asia Pacific