EwanDawson/ NotebookAutoSave

Auto-save the current active notebook every few seconds

Contributed by: Ewan Dawson

This paclet runs at the startup of the FrontEnd, and installs a ScheduledTask in the local session, which saves the currently selected notebook every 10 seconds. Wolfram Desktop already has the capability to save after every evaluation, but this isn't very useful when writing long-form content in Wolfram notebooks.

Installation Instructions

To install this paclet in your Wolfram Language environment, evaluate this code:
PacletInstall["EwanDawson/NotebookAutoSave"]

Details

A notbook is auto-saved if all of the following conditions are met: it has been previously been saved (either locally or in the Wolfram Cloud); it has been modified; it is the current input notebook, as well as being the currently selected notebook; its file isn't inside the installation directory (i.e. a system dialog).

Examples

Basic Examples

Most users will have no need to use any of the symbols defined by this package. However the following may be useful to some.


To suspend auto-save, set $NotebookAutoSaveOnSchedule to False:

In[1]:=
$NotebookAutoSaveOnSchedule = False
Out[1]=

To resume auto-save, set the value to True:

In[2]:=
$NotebookAutoSaveOnSchedule = True
Out[2]=

The auto-save TaskObject is assigned to $NotebookAutoSaveScheduledTask:

In[3]:=
$NotebookAutoSaveScheduledTask
Out[3]=

To completely remove the auto-save task, use RemoveNotebookAutoSaveScheduledTask[]:

In[4]:=
RemoveNotebookAutoSaveScheduledTask[]
Out[4]=

To re-install and start the autosave task, use InstallNotebookAutoSaveScheduledTask[]. This function is called automatically when the front-end session is initialized:

In[5]:=
InstallNotebookAutoSaveScheduledTask[]
Out[5]=

To see log messages generated by this Paclet, evaluateLogMessages[]:

In[6]:=
LogMessages[] // TableForm
Out[6]=

Publisher

Ewan Dawson

Disclosures

  • Local files
  • Wolfram account
  • Wolfram Language system configuration
  • Wolfram Language built-in symbols
  • Learn More »

Compatibility

Wolfram Language Version 13.

Version History

  • 1.1.1 – 31 October 2023
  • 1.0.6 – 23 May 2022

License Information

MIT License

Paclet Source

Source Metadata