answer file | |||||||||||||
Type | command | ||||||||||||
Dictionary | LCS | ||||||||||||
Library | LiveCode Script | ||||||||||||
Syntax |
| ||||||||||||
Summary | Displays a standard file dialog for the user to select a file. | ||||||||||||
Introduced | 1.0 | ||||||||||||
OS | mac, windows, linux | ||||||||||||
Platforms | desktop | ||||||||||||
Parameters |
| ||||||||||||
Example |
| ||||||||||||
Values |
| ||||||||||||
Related | Keyword: it Property: systemFileSelector, dontUseNS Command: ask file with type, revCopyFile, open file, answer, ask file, answer file with type, answer folder Function: revUnixFromMacPath, files, revMacFromUnixPath Glossary: file dialog box | ||||||||||||
Security | disk | ||||||||||||
Description | Use the answer file command to open a file chooser dialog. The dialog box displayed is the same one most programs use for the "Open" command in the File menu.
If the as sheet form is used, the dialog box appears as a sheet on OS X systems. On other systems, the as sheet form has no effect and the dialog box appears normally. Attempting to open a sheet from within another sheet displays the second stack as a modal dialog box instead. To give a dialog box a prompt when using the as sheet form a non-empty title must be provided. This will cause the prompt to appear in the same place it would if as sheet was not being used. 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.
| ||||||||||||
Tags | file system |