I have a nb file that I have been editing frequently in M 10, but no matter how many times I modify the file or edit the file in M 10 it doesn't seem to update its cache.
Everytime I open the file I receive the following message.
The file you are opening appears to have been edited outside of the Wolfram System. The file outline cache was ignored. This should not affect any of the contents of the file.
How can I create function such that I can eliminate such a message?
Currently I have tried running the following function.
CleanNotebook[nb_NotebookObject] :=
Module[{},
SetOptions[nb,
PrivateNotebookOptions -> {"FileOutlineCache" -> False},
"TrackCellChangeTimes" -> False];
SetSelectedNotebook[nb];
SelectionMove[nb, All, Notebook];
FrontEndExecute[{FrontEnd`RemoveOptions[FrontEnd`SelectionObject,
"CellChangeTimes"]}]
]
file = FileNameJoin[{"C:\\Users\\a\\Desktop","file.nb"}];nb = NotebookOpen[file];NotebookSave[nb, file];NotebookClose[nb];
but it results in tons of popups if you loop it over some files. $\endgroup$