/ Forums / Id-Extras Forum / Document Action Close script? / Reply To: Document Action Close script?
August 18, 2022 at 10:31 pm
#6927
Participant
Thank you for sharing this, Ariel! I worked through it and was able to make my Will Close script write to that action.
// reverts to user’s preferences
var myWillClose = ‘app.runtimeHighlight = hiliUserPrefs;’
+’ app.runtimeHighlightColor = colorUserPrefs;’;
// Set document actions…
this.setAction(“WillClose”, myWillClose);
Just for aesthetics, is there a way to put a line break in there so that when it is written to Will Close, it will break it line by line?