I have a macro calling Bioformat to open OlF files, do some MIP projection for each, merge the projections in a new stack and register the frames.
After setting “JFileChooser” in Edit/Option/Inputoutput, I can use Ctrl-Click to select the subset of files that I want to process. In a macro, this fails however since I cannot Ctrl-click (“Open” seems to ignore the “JFileChooser” setting). I do not want to process all the files in the folder. Ideally, I am looking for a function that would return a list of path+filename for files selected by user through Ctrl+click or Shift click.
(Fiji, ImageJ 1.51h, Java 1.6.0_24). Any help greatly appreciated.
So… I am still a newbie myself in this, but have you looked at all into Script Parameters? I have a feeling your solution is there…
This is also a nice presentation with great info on parameterization in ImageJ.
Hope this helps a bit!
Thanks for the advice, I use Ruby on other projects but I never considered writing Ruby scripts in Fiji instead of macros. Problem solved