/ Id-Extras Forum / Document Action Close script? / Reply To: Document Action Close script?


    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?