I want to change how a notebook files save. The basic framework I'm using for this is:
SetOptions[
EvaluationNotebook[],
NotebookEventActions ->
{
{"MenuCommand", "Save"} :>
(NotebookSave[]; $action)
}
]
Because with PassEventsDown->True
the $action
gets called before the NotebookSave
.
This is ugly and a little bit hazardous, though. Is there any way to have it otherwise? Can I trigger the event to save first, then do the $action
with PassEventsDown->True
?
Comments
Post a Comment