Can I reset an InDesign dialog?

(RJay Hansen) #1

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?

0 Likes

(Bret Perry) #2

Are scripting an existing InDesign dialog or have you created a custom dialog with your script?
Either way, should be possible to reset tp get desired rotation.
Hard to tell where the issue is without seeing the code,

Did you set a breakpoint at the trouble area in Debug mode and Step thru it shecking your variables at each step to see if they are updating as expected?

You said you set the rotation value to empty, maybe it needs to be 0 to over-ride previous setting? just a wlld guess.

0 Likes