4

When saving a file and making changes to it one can revert using File->Revert in the menu or by entering

FrontEndExecute[FrontEndToken["Revert"]]

before reverting a dialog window opens to ask if you are sure. I would like to skip this dialog by automatically answering with yes.

Is that possible?

Edit:

Here is a picture of the dialog.

enter image description here

jens_bo
  • 1,804
  • 17
  • 16

1 Answers1

5

Add False as a second argument to FrontEndToken for "Revert":

FrontEndExecute[FrontEndToken["Revert", False]]

ragfield
  • 1,365
  • 7
  • 11