Prompt for file
Ask the user to choose one or more files, optionally of given types.
Command in the Mouse and keyboard toolkit · id ooa.desktop/prompt_file · 7 inputs, 3 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Title | String | No | Choose a file | Title shown in bold at the top; the window's title is the agent's name unless you change this. |
| Start folder | File | No | Folder to start in. | |
| File types | String | No | Only show files with these extensions; all files when empty. | |
| Multiple | Boolean | No | false | Let the user choose several files; paths lists them all. |
| Timeout (seconds) | Number | No | 0 | Give up after this many seconds; 0 waits. |
| Always on top | Boolean | No | true | Keep the dialog in front of other windows. |
| Message | String | No | Text shown in the dialog above the list, e.g. what to choose and why. |
Outputs
| Output | Type | What it is |
|---|---|---|
| path | File | Chosen file (the first one when several), empty when cancelled. |
| paths | List | All chosen files. |
| cancelled | Boolean | True when cancelled or timed out. |