Can "answer file with type" show more than one file type at a time?
mkoob at rogers.com
Mon May 4 11:55:47 EDT 2020
I have the following in an app to for a user to select a video file.
answer file "Select the Movie." with (the tDefaultRecordingFolder of stack "preferences") with type "Quicktime Movie files|mov|Moov" or type "MPEG 4 Movie Files|mp4,m4v|mpg4"
The resulting dialog presents a a pop up menu on the file opening dialog two items "Quicktime Movie Files" and "MPEG 4 Movie Files”
I would rather that the user not have to do the extra step of selecting the movie types from the pop up menu. Sometimes user get frustrated that the video they want to open is shown as disabled but they don’t realize they need to select the other file type from the pop up menu.
Is it possible put two different file types without using the ' or type' so there is not a pop up menu and both QuickTime and MPEG 4 movie files are enabled in the dialog at the same time ?
I have tried doing the types as a list but the script editor flags it as a syntax error.
answer file "Select the Movie." with (the tDefaultRecordingFolder of stack "preferences") with type "Quicktime Movie files|mov|Moov”, "MPEG 4 Movie Files|mp4,m4v|mpg4"
More information about the use-livecode