I finally have my autoSave[]
function that appears to work. Although it does automatically save file the DateString
(dynamic in-place updating) which provides the interval time to do an autoSave
does not appear to be consistent. Is this because the frontend will not save file if no edits had taken place since last save? How would you improve autoSave[]
? But I know it works by making changes to a test file and closing without saving has all edits contained when reopened.
autoSave[minutes_ : 10] :=
Row[{"last autoSave",
Dynamic[Refresh[NotebookSave[]; DateString[],
UpdateInterval -> minutes 60]]}, " \[Rule] "];
DateString[]
in an output cell. $\endgroup$ – Jules Manson Jun 25 '20 at 8:57