I have a script for InDesign that imposes PDF files on a press sheet. It starts by having InDesign make a dialog for the user to enter values in. If the user enters a value that won’t work, after the dialog is dismissed the script warns them, then reopens the dialog so they can try entering their values again (and correct their mistake). My problem is after the new values are entered and the dialog dismissed, if the page rotation option in the dialog was used, the script won’t place rotated frames. It places all frames on the press sheet unrotated and doesn’t warn the user of the problem.
I’ve tried resetting the rotation value to be empty before opening the dialog the second time, but that doesn’t resolve the issue. Does anyone know if what I’m trying to do is possible with InDesign created dialogs or do I just need to terminate the script after the user dismisses the error alert and have them rerun the script from scratch?