Copy link to clipboard
Copied
Preview data records too much, want to use the script implementation preview next a record and pre a record, and set shortcut keys for the script.
the following script can be opened and closed to preview:
app.menuActions.itemByID(108035).checked
But I don't know preview next a record and pre a record script in how to implement.
Copy link to clipboard
Copied
Bump. I'm looking for this shortcut as well. Any help would be very appreciated.
Copy link to clipboard
Copied
Any success? Does anyone know how to switch between records in preview with extendscript? Or how to access the text field in Data Merge with script?
Copy link to clipboard
Copied
I mean text field in DataMerge panel, the one on the bottom, where you can type the record number 🙂 Can we access it similar way I can access MenuAction with ID?
Copy link to clipboard
Copied
My experience: when I was writing a ‘Data Merge’ script, I found out that it’s impossible to turn on/off the preview button and switch records by the script as you can do in the Data Merge panel. This makes scripting Data Merge almost impossible. As a workaround, in this script I had to export pdf for one language from the Document object instead of the doc.dataMergeProperties object.
Copy link to clipboard
Copied
Hi Kasyan, thank you for your reply 🙂
I managed to switch Data Merge preview ON/OFF by invoking respective Menu Action (Data Merge panel menu).
But in my case, I need to be able to select preview for specific records and then work with it further. I searched whole internet and I failed to find solution 😕