Open File Dialog
Opens a file picker and returns the selected file path as a string. Use `initialDomain` to control which location the dialog opens in first. With `cancelBehavior=STOP`, cancelling aborts the script immediately. With `cancelBehavior=EMPTY`, cancelling returns an empty string instead.
Inputs
| Input | Required | Value Kind | Types | Enum Values |
|---|---|---|---|---|
cancelBehavior | no | enum | enum-string | STOP, EMPTY |
initialDomain | no | enum | enum-string | DEFAULT, USER_DESKTOP, USER_DOCUMENTS, USER_PICTURES, USER_VIDEOS, USER_MUSIC, USER_DOWNLOADS, USER_HOME, TEMP, APP_LOCAL_DATA, APP_LOCAL_LIBRARY, APP_LOCAL_CACHE, APP_LOCAL_SHARED, APP_LOCAL_TEMPORARY, APP_ROAMING_DATA, APP_ROAMING_LIBRARY |
Notes
No additional notes are available yet.
See Also
- Building Prompt Dialogs: Explains how
UI Prompt FieldandUI Prompt Formwork together to build custom dialogs.
Examples
Import SRT As Sequence Markers
Prompts for marker text-target options, optionally clears existing active-sequence markers, then imports subtitle entries from an `.srt` file as sequence markers.
Topics: markers, subtitles, SRT import, file dialogs, marker comments
Source: recipes/ex-markers-import-srt-as-sequence-markers.json
Import YouTube Chapter Text As Sequence Markers
Prompts for a pasted chapter block or a text file, optionally clears existing active-sequence markers, then imports YouTube-style chapter lines as sequence markers.
Topics: markers, YouTube chapters, text import, file dialogs, multiline prompts, marker comments
Source: recipes/ex-markers-import-youtube-chapter-text-as-sequence-markers.json
Render Marker Ranges With Export Preset
Prompts for an `.epr` preset and an output folder, then renders one file per non-zero-duration active-sequence marker by setting sequence in/out and exporting that range.
Topics: markers, rendering and export, sequence export, presets, file dialogs, folder dialogs
Source: recipes/ex-markers-render-active-sequence-ranges-with-preset.json