Issue with unique #@File script parameter in Fiji

The console throws a NullPointerException when a single #@File is used for the input.
However adding another field works.
Is it like for ImagePlus that the variable is supposed to be automatically filled with the current image ? except that there is no such thing as current File :sweat_smile:

Illustrative code: try to remove the #@String field to get the error.

#@File (label="test") myfile
#@String (label="Some random string") text
print myfile
1 Like

Indeed there’s a pretty bad bug with the File parameter currently. See this post for another workaround:

As a workaround, you can set style="" in your script parameter:

1 Like

Thanks I did a quick search but I did not come across that post