Fellow scripters,
I'm building a bunch of new applications to help improve our productivity of our graphics department and eliminate some tedium.
One application is a custom datamerge palette that allows users to change just the information they edit often, such as the bottom margin and the space between rows/columns. Instead of manually entering the numbers in edittext fields, my palette has nice +/- buttons.
However, the great thing about InDesign's datamerge panel is the wonderful 'preview' checkbox, which I can't figure out how to code! I figured there may be a method in the DOM that I'm completely not seeing.
Any suggestions?
Thanks in advance,
Mike
You can display the panel and check the checkbox:
app.panels.item("$ID/DataMergePanelName").visible=true;
app.menus.item("$ID/DataMergeUIPanelPopup").menuItems.item("$ID/Preview Records").associatedMenuAction.invoke();
app.panels.item("$ID/DataMergePanelName").visible=false;
Awkward to be sure.
What I have been trying to find out how to do it is add a script into an automator action I created which will open an InDesign file, update links, export as pdf then save and close file.
If a script could be added to preview datamerge, export PDF then switch off preview before saving it would save hours!
North America
Europe, Middle East and Africa
Asia Pacific