How to script/code fiji to do the following:

IJ.run(imp, “Color Threshold…”, “”);

works well but i want to also specify that it does color space=RGB and then select the thresholds (0 for red and max on blue/green), and lastly to click “select”

Any ideas ? Thanks!!!

You can use the macro recorder to get the commands you are asking for, see:

https://imagej.nih.gov/ij/docs/guide/146-31.html#toc-Subsection-31.1.4

Select the language you would like to record in the combobox and then use the ImageJ GUI to record the commands which you can reuse in your code.