MathGroup Archive 2010

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Programmatically saving myself

  • To: mathgroup at smc.vnet.net
  • Subject: [mg107933] Re: Programmatically saving myself
  • From: David Bailey <dave at removedbailey.co.uk>
  • Date: Wed, 3 Mar 2010 05:51:18 -0500 (EST)
  • References: <hm75ch$iu9$1@smc.vnet.net>

Joe Hays wrote:
> Hello all,
> 
> How can I get a notebook to programmatically save itself at controlled
> locations? I don't want to use the NotebookAutoSave property because that
> saves the notebook everytime a cell produces an output. I want more control
> over when the notebook save itself.
> 
> Ideas?
> 
> 

Assuming your notebook is selected while it is executing (the usual case):

NotebookSave[SelectedNotebook[]]

However, I would be a bit cautious about doing this unless your notebook 
just invokes code from elsewhere. If I had a notebook containing a 
substantial amount of code, I'd want to be in charge when I saved it. 
Murphy's law says that if you automate the process, something will go wrong!

David Bailey
http://www.dbaileyconsultancy.co.uk


  • Prev by Date: Re: "changebit" front-end option for Demonstrations NBs
  • Next by Date: ListContourPlot3D - only working with arrays?
  • Previous by thread: Re: Re: "changebit" front-end option for Demonstrations NBs
  • Next by thread: ListContourPlot3D - only working with arrays?