getsavefilenameΒΆ

nil getsavefilename ( string title , string filter , string defaultDirectory , string extension , string category , [ string currentfile ] )

Open a file selector for writing, returns the path to the selected file or nil if none

Arguments:

  • title the title of the file selector
  • filter the file filter
  • defaultDirectory the default directory if no category can be matched
  • extension the default file extension
  • category the category of file to select
  • currentfile the initial location of the file to save, to open the file dialog at this location