Can "answer file with type" show more than one file type at a time?
Klaus major-k
klaus at major-k.de
Mon May 4 12:01:06 EDT 2020
Hi Martin,
> Am 04.05.2020 um 17:55 schrieb Martin Koob via use-livecode <use-livecode at lists.runrev.com>:
>
> Hi
>
> 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"
...
answer file "Select the Movie." with type "Video files|mov,mp4,m4v|"
...
> Thanks.
>
> Martin
Best
Klaus
--
Klaus Major
https://www.major-k.de
klaus at major-k.de
More information about the use-livecode
mailing list