Skip to main content

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​

InputTypeRequiredDefaultWhat it is
TitleStringNoChoose a fileTitle shown in bold at the top; the window's title is the agent's name unless you change this.
Start folderFileNoFolder to start in.
File typesStringNoOnly show files with these extensions; all files when empty.
MultipleBooleanNofalseLet the user choose several files; paths lists them all.
Timeout (seconds)NumberNo0Give up after this many seconds; 0 waits.
Always on topBooleanNotrueKeep the dialog in front of other windows.
MessageStringNoText shown in the dialog above the list, e.g. what to choose and why.

Outputs​

OutputTypeWhat it is
pathFileChosen file (the first one when several), empty when cancelled.
pathsListAll chosen files.
cancelledBooleanTrue when cancelled or timed out.