InDesign Server to ignore auto recovery

Post Reply
User avatar
Terkelsen
Member
Posts: 126
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

InDesign Server to ignore auto recovery

Post 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?
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

InDesign Server to ignore auto recovery

Post by dkelly »

try



app.scriptPreferences.userInteractionLevel = UserInteractionLevels.NEVER_INTERACT;
User avatar
Terkelsen
Member
Posts: 126
Joined: Thu Sep 08, 2011 5:08 pm
Contact:

InDesign Server to ignore auto recovery

Post 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?
dkelly
TOP CONTRIBUTOR
Posts: 628
Joined: Mon Nov 29, 2010 8:45 pm
Location: Alpharetta GA USA
Contact:

InDesign Server to ignore auto recovery

Post 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;
Post Reply