I am having a problem where every time I try to run a script it gives me
an error that there is a dialog open. There in fact is no dialog open so
I am puzzled. I have tried restarting InDesign and rebooting Windows but
nothing has helped. Any suggestions?
try putting this code at the beginning of your script. That way it will clean up any dialogs the system may think are still there. It is always a good idea to destroy your dialog boxes after they are displayed and the values put into variables. Doing this will eliminate the type of problems you are having.