Re: How remove CellChangeTimes values?
- To: mathgroup at smc.vnet.net
- Subject: [mg85028] Re: How remove CellChangeTimes values?
- From: dh <dh at metrohm.ch>
- Date: Thu, 24 Jan 2008 04:47:12 -0500 (EST)
- References: <fn1o83$9t0$1@smc.vnet.net>
Hello Murray,
you must open the notebook, get the notebook expression, change
CellChangeTimes, create a noteboook object from the expression. The
following code does this:
nbo=NotebookOpen["d:/tmp/Untitled-1.nb"];
nb=NotebookGet[nbo];
nb= nb /. HoldPattern[CellChangeTimes->{__}]->CellChangeTimes->{};
NotebookPut[nb,nbo];
Finally you may save the notebook by hand or automatically by:
NotebookSave[notebookname]
If you do not want to see the notebook, you may give to option
Visible->False to NotebookOpen
hope this helps, Daniel
Murray Eisenberg wrote:
> I have a notebook littered with often long CellChangeTimes->...
> expressions within its cell expressions. Of course I know how to use
> the Option Inspector so as not to record CellChangeTimes values. But
> how can all existing CellChangeTimes values be removed, so as to "clean
> up" the notebook file?
>
- Follow-Ups:
- Re: Re: How remove CellChangeTimes values?
- From: Murray Eisenberg <murray@math.umass.edu>
- Re: Re: How remove CellChangeTimes values?