Simple window selection macro Issue

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Simple window selection macro Issue

rephlexe
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