Batch processing multiple folders (with File script parameter)

Hi,

I was looking for a solution to batch process multiple folders (not files) from a script and found this thread: https://forum.image.sc/t/multi-file-selection-ui/10139
The #@ File[] syntax described by @imagejan to select multiple paths seems superful, thanks for adding this!

However, when I type:
#@ File[] (label="Input folder array", style="directory") multipleFolders
the file chooser lets me only select files, not directories.

For
#@ File[] (label="Input folder array", style="both") multipleFolders
it works and directories can be selected (and files).

Is this intended? Or am I missing something here?

A small question related to this: The Batch button in the script editor seems to only allow selecting multiple files, but not folders. Is there a simple workaround for selecting folders?

Thank you already!
Noreen

2 Likes

@imagejan, could you answer?
Maybe selecting folders is currently not (yet) supported?

However, when I type:
#@ File[] (label="Input folder array", style="directory") multipleFolders
the file chooser lets me only select files, not directories.

I think I ran into this issue as well and resorted to using the "both" option as well. Maybe a bug?