ask file | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Displays a standard Save dialog for the user to enter a file name and specify a location. | ||||||||||||
Introduced | 1.0 | ||||||||||||
Changes | The ask file...as sheet form was introduced in version 2.0. | ||||||||||||
OS | mac, windows, linux | ||||||||||||
Platforms | desktop | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Values |
| ||||||||||||
Related | Keyword: file, it Command: answer file, ask Function: result Control Structure: function Glossary: application, return, variable, property, file path, modal dialog box, dialog box, command, Windows, file dialog box, Mac OS, Unix, parameter | ||||||||||||
Security | disk | ||||||||||||
Description | Use the ask file command to let the user provide the name and location of a new file. The dialog box is the same one most applications use for the "Save" command in the File menu. (If the systemFileSelector property is set to true on Mac OS and Windows systems, and always on Unix systems, the application displays its own built-in dialog box, instead of the one provided by the operating system.)
If the systemFileSelector property is set to false, LiveCode's built-in dialog box is used instead of the operating system's standard file dialog. *Cross-platform note:* On Mac OS systems where Navigation Services is in use, if you don't specify a default file name, the file name box contains "untitled". On Unix and Windows systems, the file name box is empty when the dialog box appears. Unix systems currently use LiveCode's built-in dialog box. | ||||||||||||
Tags | file system |