MathGroup Archive 2008

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

Search the Archive

Re: Re: How remove CellChangeTimes values?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg85046] Re: [mg85028] Re: How remove CellChangeTimes values?
  • From: Murray Eisenberg <murray at math.umass.edu>
  • Date: Fri, 25 Jan 2008 05:04:37 -0500 (EST)
  • Organization: Mathematics & Statistics, Univ. of Mass./Amherst
  • References: <fn1o83$9t0$1@smc.vnet.net> <200801240947.EAA15016@smc.vnet.net>
  • Reply-to: murray at math.umass.edu

Thanks to all who replied.  Needless to say, the method given by John 
Fultz is the simplest and most direct: menu Cell > Notebook History > 
Clear History.

dh wrote:
> 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?
> 
> 
> 
> 

-- 
Murray Eisenberg                     murray at math.umass.edu
Mathematics & Statistics Dept.
Lederle Graduate Research Tower      phone 413 549-1020 (H)
University of Massachusetts                413 545-2859 (W)
710 North Pleasant Street            fax   413 545-1801
Amherst, MA 01003-9305


  • Prev by Date: Re: Using 'IF' function on 'Lists' in Mathematica 6.01
  • Next by Date: Re: Wavelet "filter"?
  • Previous by thread: Re: How remove CellChangeTimes values?
  • Next by thread: Re: How remove CellChangeTimes values?