Tokens Related to the File Menu
Mathematica allows any front end command to be executed programmatically from within the kernel by sending an appropriate front end token. There are tokens for all standard menu commands—as well as ones not accessible directly with the default front end menu configuration.
FrontEndTokenExecute — execute a menu-like command specified by a front end token
"New" — create a new notebook
"NewPackage" — create a new .m package
"NewText" — create a new text document
"Open" — open notebook or other files
"Close" — close the current notebook
"CloseAll" — close all open notebooks
"Save" — save the current notebook
"SaveRename" —save the current notebook under a new name
"SelectionSaveSpecial" — save the current selection in many possible formats
"Revert" — restore the current notebook to its last saved version
"NotebookMail" — send the current notebook by email (Windows only)
"SystemPrintOptionsDialog" — open the
Page Setup dialog
"PrintOptionsDialog" — open the
Printing Options dialog
"HeadersFootersDialog" — open the
Headers/Footers dialog
"ShowPageBreaks" — display page breaks on screen
"PrintDialog" — open the
Print dialog to print the current notebook
"PrintSelectionDialog" — open the
Print dialog to print a selection
"FrontEndQuit" — quit
Mathematica