[SOLVED] InDesign file generation and closing issues
Posted: Fri Nov 15, 2013 4:49 pm
Hi,
I am trying to generate indesign documents on the fly based on a xml input.
To get Switch to run InDesign module, it seems I have to use a custom open script in order to open a dummy document (I don't need it really).
So later my script opens an indt template, populate some data, export files…It also closes the newly created document.
Problem is, the dummy document remains unclosed. And if I explicitely ask for its closing, InDesign actually closes it, but Switch returns an error.
What is teh way for running the InDesign configurator with no InDesign files as input ?
Thanks in advance,
Loic
/////////////////////////////////////////////////
It appears I was doing things wrong. I was executing most of my script in the "open" area of the InDesign Script configurator. I moved the main script to the "execute" area meanwhile keeping open for opening my dummy document.
Everything is now ok. Hope that may help someone.
I am trying to generate indesign documents on the fly based on a xml input.
To get Switch to run InDesign module, it seems I have to use a custom open script in order to open a dummy document (I don't need it really).
So later my script opens an indt template, populate some data, export files…It also closes the newly created document.
Problem is, the dummy document remains unclosed. And if I explicitely ask for its closing, InDesign actually closes it, but Switch returns an error.
What is teh way for running the InDesign configurator with no InDesign files as input ?
Thanks in advance,
Loic
/////////////////////////////////////////////////
It appears I was doing things wrong. I was executing most of my script in the "open" area of the InDesign Script configurator. I moved the main script to the "execute" area meanwhile keeping open for opening my dummy document.
Everything is now ok. Hope that may help someone.