Open this page in the API Guide

ScriptEditorContext.saveOnChange Property

Gets a property indicating to save on change or not.