1
$\begingroup$

I keep crashing Mathematica and losing cells and textual data that I'm typing. Instead of having to remember to hit command+s all the time, I'd like a scheduled task to save my notebook every 30 seconds, is there a better way?

$\endgroup$
0

1 Answer 1

2
$\begingroup$

This seems to do the trick

saveTask = 
  CreateScheduledTask[FrontEndExecute[FrontEndToken["Save"]], 30];
StartScheduledTask[saveTask]

This also,

Dynamic[Refresh[NotebookSave[]; DateString[], UpdateInterval -> 30]]

Of course, there's also this built-in functionality with

SetOptions[SelectedNotebook[], NotebookAutoSave -> True]
$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.