ui.showSaveFileDialog
Description
Shows an save file dialog.

Parameters
caption string (window title)
initialFilename string (initial filename or folder to display)
filter string (file extensions to include see example 1)
defaultExt string (default extension to append if none is provided by the user)

Return value
selectedFilename string (or empty string if cancelled)

Example
local filename = ui.showSaveFileDialog("Save Some Text File", "", "Text Files|*.txt|All Files|*.*", "txt")
if filename ~= "" then
    print("Selected file " .. filename)
else
    print("No file was picked")
end

Comments
The initialFilename parameter defaults to My Documents folder if empty string is provided.

See also
ui.showOpenFileDialog
io.getSpecialFolderPath

Back