I know this is going to be simple but it is driving me crazy!!!!!
gives me a cancel / revert dialog box
I just want it to revert. Not to ask me if a want to revert.
Tell InDesign to shut up and do what it's been told. (After that revert, however, you might want to know if it has anything else to complain about.)
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT; app.activeDocument.revert(); app.scriptPreferences.userInteractionLevel = UserInteractionLevels.INTERACT_WITH_ALL;
Perfect thanks for your help