If you run this script in an undefined tab (not yet saved), you first get the script-save dialog.
This might have irritated you ;-)
If you get over this dialog (either dismiss or handle), then you get your intended file dialog.
If you run this script in an undefined tab (not yet saved), you first get the script-save dialog.
This might have irritated you ;-)
If you get over this dialog (either dismiss or handle), then you get your intended file dialog.