Page 1 of 1

InDesign Server to ignore auto recovery

Posted: Tue Dec 02, 2014 2:28 pm
by Terkelsen
Does anybody know if it is possible to have the configuratpr for InDesign Server run a script on "Open" that will suppress the auto-recovery of files?

InDesign Server to ignore auto recovery

Posted: Tue Dec 02, 2014 6:06 pm
by dkelly
try



app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;

InDesign Server to ignore auto recovery

Posted: Mon Dec 08, 2014 3:52 pm
by Terkelsen
I have two questions, Dwight, before I dare try this.



1) If this will have unexpected consequences, how do I get back to the original settings?



2) If I run this script once will the preferences then be changed for all future documents (on an application level) or will I have to run the script for each document?

InDesign Server to ignore auto recovery

Posted: Mon Dec 08, 2014 4:04 pm
by dkelly
I would recommend settings neverInteract prior to a function you don't want the application to display any dialog windows and then reset afterwards.



this.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;

var doc = this.open(myFile, myShowingWindow);

app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;