Automatically saving notebook (or other type files in mathematica) files?

Regarding autosaving, you may want to check out the NotebookAutoSave option, which can be set to True through Fromat->Option Inspector You have to choose "Selected notebook", then go to Notebook Options -> File Options and set NotebookAutoSave to True. Then, your notebook will be saved after every evaluation. Whether or not this is a satisfactory solution, of course depends on the situation.

Regarding autosaving, you may want to check out the NotebookAutoSave option, which can be set to True through Fromat->Option Inspector. You have to choose "Selected notebook", then go to Notebook Options -> File Options, and set NotebookAutoSave to True. Then, your notebook will be saved after every evaluation.

Whether or not this is a satisfactory solution, of course depends on the situation. But my experience is that the most reliable way is to develop a CTRL+S reflex - this one never lets me down and is working quite well. As for the versioning, it is much easier with packages, for which you can use WorkBench which has integrated support for CVS and support for SVN via Eclipse plugin.

For notebooks, I refer you to this SO thread. You may also find this Mathgroup discussion of some interest. EDIT For M8, for auto-saving purposes you can probably also run RunScheduledTaskNotebookSaveEvaluationNotebook,{300} But I can not test this code at the moment EDIT2 I just came across this post in the Toolbag repository - which may also be an alternative for the autosave part of the question (but please see also the discussion in comments on the relative advantages of scheduled tasks vs. Dynamic).

Thanks. I tried Fromat->Option Inspector. Chose "Selected notebook", then went to Notebook Options -> File Options, and set NotebookAutoSave to True, but MMA does not allow me to save/apply.

BTW: is there a reason why typing @ person(i. E leonid): at the begining of a comment gets automatically deleted in comments now? – Phil Aug 25 at 17:01 @Phil You should change the setting of the drop-down menu to the right of "Show option values" in the Option Inspector from "Selection" to "Selected Notebook".

Then, it should allow you to set the option, and apply it. I double-checked in M7 - it works after I close notebook and then reopen it. As to the names in comments - it looks like the system learned to identify when they are redundant - for example when addressed to the author of the answer - and automatically eliminates them now.

– Leonid Shifrin Aug 25 at 18:09.

Since you have MMA version 8 you could use: saveTask = CreateScheduledTaskFrontEndExecuteFrontEndToken"Save", 5*60; StartScheduledTasksaveTask; to save every 5 minutes (change the term 5*60 for other timings). To remove the auto-save task use: RemoveScheduledTasksaveTask; To save only a fixed, specific notebook, store its handle in nb (finding it using Notebooks, SelectedNotebook, InputNotebook or EvaluationNotebook) and use FrontEndTokennb,"Save" instead of just FrontEndToken"Save".

I should learn to read the other answers in full (this is the second time in a day this happens to me). I posted the above after glancing over Leonid's post and missing the end. I deleted it, but I have now undeleted it realizing that the described background tasks are probably sufficiently different to warrant a different post.(also, I did test the code) – Sjoerd C.De Vries Aug 25 at 21:13 +1 for FrontEndExecuteFrontEndToken"Save".

I was thinking of this one, but could not find it in the docs, and could not recall the syntax. – Leonid Shifrin Aug 25 at 21:18 2 @Leonid there isn't an official list of tokens in the documentation AFAIK, but belisarius published one here: stackoverflow.Com/questions/4209405/… – Sjoerd C. De Vries Aug 25 at 22:01 Thanks very much for this!

– Leonid Shifrin Aug 25 at 22:20 +1, good trick... – acl Aug 257 at 22:13.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions