4
$\begingroup$

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

$\endgroup$

1 Answer 1

5
$\begingroup$

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

FrontEndExecute[FrontEndToken["Revert", False]]

$\endgroup$
1
  • $\begingroup$ Great, thanks a lot! $\endgroup$
    – jens_bo
    Dec 12, 2012 at 20:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.