[VBA] Getting warnings as logfile
Hi folks!
This monday I started using VBA for controlling automation processes in InDesign. I finished a script within Access which creates for each existing data record an own textfile to a specified location. Afterwards it opens for each record an specified InDesign document and merges the data into the document. Finally the document is saved as PDF and closed.
The amount can be over thousands of records. Because of this I'm surpressing dialogs and warnings by using oInDesign.ScriptPreferences.UserInteractionLevel = idUserInteractionLevels.idNeverInteract to avoid breaks. The script works without problems as wished.
But unfortunatelly there can be warnings which are important to know. That's the reason I'm looking for a solution to write warnings into a logfile. Is there anybody who knows how to read out warnings and dialogs within InDesign by using VBA in Access - without breaking the process? A hint would be helpful.
With kind regards,
Steffi