Editor script - save as file dialog

Is there a way to create a “save as” file dialog for an editor script?

I have tried using editor.ui.show_external_file_dialog() but this appears to be for opening files only. If you type in a name for the new file it generates a system error saying “File not found. Check the filename and try again”

Hi, I don’t think there is a way currently to show a dialog that allows picking a new name. The closest thing you can do is a text field for the file name and a folder selector with a dialog to select an external folder.

thanks. I will give that a try.