InDesign Server to ignore auto recovery
InDesign Server to ignore auto recovery
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?
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
InDesign Server to ignore auto recovery
try
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
InDesign Server to ignore auto recovery
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?
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?
-
- TOP CONTRIBUTOR
- Posts: 628
- Joined: Mon Nov 29, 2010 8:45 pm
- Location: Alpharetta GA USA
- Contact:
InDesign Server to ignore auto recovery
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;
this.scriptPreferences.userInteractionLevel = UserInteractionLevels.neverInteract;
var doc = this.open(myFile, myShowingWindow);
app.scriptPreferences.userInteractionLevel = UserInteractionLevels.interactWithAll;