2
$\begingroup$

Is it possible to create a button

whose action is

"save as... in menu bar" with custom initial full path.

(custom initial full path is specified by user.)

Note that if you click save as... in menu bar, a windows pops up suggesting certain full path. That full path is initial full path. If you click save immediately, then the notebook is saved on the initial full path. But if you want to change the path, you can type another full path and click yes. In this sense,
save as... in menu bar is interactive.

So I want to create a save as button, that is interactive,
with custom initial full path, on a certain notebook.

$\endgroup$

1 Answer 1

5
$\begingroup$

Use SystemDialogInput.

NotebookSave[InputNotebook[], SystemDialogInput["FileSave", "C:\\myfile.nb"]]
$\endgroup$
1
  • $\begingroup$ Great answer and great built-in function! $\endgroup$
    – imida k
    Feb 4 at 22:26

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.