Onetastic Macro Documentation >
>
>
FileSystem_ShowSaveFileDialog FileSystem_ShowSaveFileDialog
Displays a file picker for user to provide a location and file name to save to on the local computer. User can pick an existing file or provide a new file name.
Syntax
Array<File> FileSystem_ShowSaveFileDialog(
String suggestedName,
Array<String> allowedTypes)
Parameters
- String suggestedName
- The default name for the file to save. Can be left empty.
- Array<String> allowedTypes (optional)
- An array of allowed file types. Each entry in the array contains a semicolon separated file type filters. Corresponding keys for each value is a description of the file type. If not provided, all files will be allowed in the picker.
Examples
$file = FileSystem_ShowSaveFileDialog("contacts.txt")
$types["Text Files"] = "*.txt"
$file = FileSystem_ShowSaveFileDialog("contacts.txt", $types)
if (IsObject($file))
else
|