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$ Commented Feb 4, 2024 at 22:26

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.