string FileOpenDialog( fileFilter )
fileFilter is a string.
This function will pause the script and show a file open dialog allowing the user to choose a file using the platforms standard open file dialog. Once the dialog is dismissed by clicking the Cancel or -Open_ buttons, the script will continue.
The fileFilter parameter is a MIME string to filter the types of file that can be chosen in the dialog. If the string is empty, then all file types would be available to be chosen.
""
would be for any file type.
"image/jpeg"
would be to only allow JPEG files to be chosen.
"image/png"
would be to only allow PNG files to be chosen.
The function will return a string to the path of the file. If the user cancels the dialog, an empty string will be returned.