Right now the File Picker widget used in User Configuration only supports selecting a single item. It would be a nice enhancement to allow multiple selections.
In the meantime, how have workflow creators worked around that? My first thought was to use a text area, and then use a colon-separated list, similar to $PATH. My script could then parse it and separate the list into usable parts. That's not as user-friendly as it could be, and since my workflow already has a file picker I'd have to decide how to handle the situation where a user chooses something from the file picker and also enters something in the text area (does one take precedence? do I combine the inputs?, etc.) There's also the issue of a user accidentally putting in something that's just wrong and it being non-obvious to troubleshoot.
Example
Here's an example use case in case I wasn't clear:
My workflow, Recent Files, is a search utility workflow. Users choose a top-level directory to use as a starting point for file/directory searches. Instead of choosing a single directory, such as $HOME, I'd like to give them the option of a selecting multiple directories to search (~/Documents, ~/Desktop, etc.). I could put in a text area that takes input such as:
$HOME/Documents:$HOME/Desktop:$HOME/src:$HOME/SomeOtherDirectory
This is easily parse-able, but subject to the problems I listed above.
A Different Idea, maybe better
I guess I could also allow the user to select a file instead of a directory, with the logic that if the file picker is a file, read the contents of the file to determine what directories to search (and use the ordinary behavior if the user selects a directory instead). That's probably a much better short-term solution, and it will be sufficient to support users who are comfortable creating text files. It might slow the workflow down a bit, and of course someone might try to use a Word document or some other format instead of a plain text file, but on the whole this is probably an acceptable solution.
Anyone have a better idea?