Skip to main content
replaced http://mathematica.stackexchange.com/ with https://mathematica.stackexchange.com/
Source Link

I lack the reputation to comment on a different answer so I must write my own answer (how perverse!).

Let me add to what simonsimon wrote.

First, there need to be quotes around "TrackCellChangeTimes" in the code he wrote herehere or else it enters the Notebook's options as something like CellContext`TrackCellChangeTimes.

Second, it is possible to programmatically clear the CellChangeTimes from a notebook. Here is one approach:

 CleanNotebook[nb_NotebookObject] := Module[{}, SetOptions[nb, PrivateNotebookOptions -> {"FileOutlineCache" -> False}, "TrackCellChangeTimes" -> False]; SetSelectedNotebook[nb]; SelectionMove[nb, All, Notebook]; FrontEndExecute[{FrontEnd`RemoveOptions[FrontEnd`SelectionObject, "CellChangeTimes"]}] ] 

The last three commands come from inspecting the system file ./SystemFiles/FrontEnd/SystemResources/HistoryOverview.nb in the Mma distribution; that is the code for the palette which lets you inspect the CellChangeTimes.

I lack the reputation to comment on a different answer so I must write my own answer (how perverse!).

Let me add to what simon wrote.

First, there need to be quotes around "TrackCellChangeTimes" in the code he wrote here or else it enters the Notebook's options as something like CellContext`TrackCellChangeTimes.

Second, it is possible to programmatically clear the CellChangeTimes from a notebook. Here is one approach:

 CleanNotebook[nb_NotebookObject] := Module[{}, SetOptions[nb, PrivateNotebookOptions -> {"FileOutlineCache" -> False}, "TrackCellChangeTimes" -> False]; SetSelectedNotebook[nb]; SelectionMove[nb, All, Notebook]; FrontEndExecute[{FrontEnd`RemoveOptions[FrontEnd`SelectionObject, "CellChangeTimes"]}] ] 

The last three commands come from inspecting the system file ./SystemFiles/FrontEnd/SystemResources/HistoryOverview.nb in the Mma distribution; that is the code for the palette which lets you inspect the CellChangeTimes.

I lack the reputation to comment on a different answer so I must write my own answer (how perverse!).

Let me add to what simon wrote.

First, there need to be quotes around "TrackCellChangeTimes" in the code he wrote here or else it enters the Notebook's options as something like CellContext`TrackCellChangeTimes.

Second, it is possible to programmatically clear the CellChangeTimes from a notebook. Here is one approach:

 CleanNotebook[nb_NotebookObject] := Module[{}, SetOptions[nb, PrivateNotebookOptions -> {"FileOutlineCache" -> False}, "TrackCellChangeTimes" -> False]; SetSelectedNotebook[nb]; SelectionMove[nb, All, Notebook]; FrontEndExecute[{FrontEnd`RemoveOptions[FrontEnd`SelectionObject, "CellChangeTimes"]}] ] 

The last three commands come from inspecting the system file ./SystemFiles/FrontEnd/SystemResources/HistoryOverview.nb in the Mma distribution; that is the code for the palette which lets you inspect the CellChangeTimes.

Source Link

I lack the reputation to comment on a different answer so I must write my own answer (how perverse!).

Let me add to what simon wrote.

First, there need to be quotes around "TrackCellChangeTimes" in the code he wrote here or else it enters the Notebook's options as something like CellContext`TrackCellChangeTimes.

Second, it is possible to programmatically clear the CellChangeTimes from a notebook. Here is one approach:

 CleanNotebook[nb_NotebookObject] := Module[{}, SetOptions[nb, PrivateNotebookOptions -> {"FileOutlineCache" -> False}, "TrackCellChangeTimes" -> False]; SetSelectedNotebook[nb]; SelectionMove[nb, All, Notebook]; FrontEndExecute[{FrontEnd`RemoveOptions[FrontEnd`SelectionObject, "CellChangeTimes"]}] ] 

The last three commands come from inspecting the system file ./SystemFiles/FrontEnd/SystemResources/HistoryOverview.nb in the Mma distribution; that is the code for the palette which lets you inspect the CellChangeTimes.