This function will display a file chooser dialog which will allow you to select a local file and the function will return the path to that file. You can set the location to open the dialog to, as well as display a custom prompt message.
The Path to a Local Directory to display when the dialog first opens.
Prompt
An optional Prompt or Message to display on the Dialog.
DialogType
Specify “GetFile” to show an open file style dialog or “PutFile” to show a save as style dialog. [Default is “GetFile”.]
FileTypes
Specify a list of allowable file extensions for “GetFile” dialogs or a list of optional file extensions for “PutFile” dialogs. [Default is no file types.]