How to import a layer from one document into a new untitled document?
I have an indesign file that I use as a template for other indesign files. The file has one layer that is a tile page which I copy and paste onto other documents. I'd like to write a script that lauches a new document with that layer already brought over from my template. I have some ideas but I'm getting stuck.
In short, I can create a new document by writing:
var myDocument = app.documents.add()
But I'm not sure how to properly call for the layer from my template file and then paste it into my new document. I know I can open the template file using:
app.open(File('C:/Users/userprofile/Documents/Template_file.indd'))
And then start working in that file... but I don't what to do that because then I may accidentally save over the template file.
I need to know if I can reference an indesign file and its layers without actually opening it.
Another option would be to open the template file but as a new untiled document? If thats possible?
Any ideas are appreciated.
Thanks,
Ben
