Login  Register

Select window name X

Posted by mia2005 on Jan 17, 2014; 5:57pm
URL: http://imagej.273.s1.nabble.com/Select-window-name-X-tp5006167.html

Hi,
I am trying to create a very simple macro that starts by splitting an image into its 3 or 4 channels (colors),
then I want the program to always select the image which name starts with C1; or even better the green channel. However, when I record, the macro saves the specific name of the image that I used to create my macro and I don't know how to replace this for "any image starting with C1" for example, or even better, the green-channel window.

Thanks a lot for your help.

This is my macro

// A click on the empty rectangle will have the same
// effect as File>Save As>Jpeg...
 
macro "Neurite Tracer Action Tool - C000R11ee" {

run("Split Channels");
selectWindow("C1-Sh488 Ph568 PSD95 647 63x_18.lsm");
call("ij3d.ImageJ3DViewer.setCoordinateSystem", "false");
run("Simple Neurite Tracer", "  choice=[Create New 3D Viewer] resampling=1");