I'm writing an indesign script that will open a dialog, allow the user to select multiple text files, and then it loops over each file, replaces text in the document with the info in the file, saves out an InDesign file, then moves to the next text file and repeats (so we end up with an equal number of indd docs as text files the user selected)
I have everything mostly working, the one issue I have, is i have a loop going over the text files, doing the work to replace, then saving - But when i select TWO or more text files, my loop dies the second i do the save on the first file, so it never does more than 1.
Im guessing the save is killing the script execution somehow... there are no errors. Does anyone know a way around this?