Login  Register

Simple window selection macro Issue

Posted by rephlexe on Jun 24, 2015; 11:49am
URL: http://imagej.273.s1.nabble.com/Simple-window-selection-macro-Issue-tp5013262.html

Hi everyone,

I have been using ImageJ for a while now, and have always managed to get away with not having to make my own macros.
It seems that my luck has run out and today I am in need of one.
Of course I have run into an issue straight off the bat

This is what I have so far:

imageCalculator("Subtract create", "sgGFP.TIF","Cy3.TIF");
selectWindow("Result of sgGFP.TIF");
run("Merge Channels...", "c1=[Cy5.TIF] c2=[Result of sgGFP.TIF] c3=[DAPI.TIF] create");


The problem I have is that I would like the macro to target windows that contain the words "sgGFP" instead of searching for that exact name.

Thank you to anyone who can help