Posted by
Stein Rørvik on
Oct 26, 2020; 12:33pm
URL: http://imagej.273.s1.nabble.com/Bugs-in-the-Window-menu-tp5024099p5024120.html
Thanks,
Yes, it seems this problem is limited to the Window menu.
Calling selectWindow in a macro selects the correct window number.
I can also reproduce this problem with the Blobs image:
run("Close All");
run("Blobs (25K)");
//title of first window is "blobs.gif"
run("Blobs (25K)");
//title of second window is "blobs-1.gif"
rename("blobs.gif");
//title of second window is now "blobs.gif" too
rename("blobs-2.gif");
//title of second window is "blobs-2.gif"
//title of first menu entry is "blobs-2.gif"
//the second window was renamed correctly,
//but the first menu entry instead of the second one was renamed
selectWindow("blobs-2.gif");
//selects the second window as expected
Stein
-----Original Message-----
Sent: 26. oktober 2020 13:00
Subject: Re: Bugs in the Window menu
I can reproduce this problem under linux with Java 14 IJ 1.53f48
Interestingly when you record the selection of the images with a macro, reveals that it might be the shown name in the dialogue which is wrong. E.g.
the 4th image in the list shows "t1-head" but selecting it from the menu
records:
selectWindow("t4-head");
Cheers
Gabriel
On Monday, 26 October 2020 11:40:22 GMT
[hidden email] wrote:
> run("Close All");
> run("T1 Head (16-bits)");
> dir = getDirectory("Temp");
> dir += "t1-head/";
> if (!File.isDirectory(dir)) File.makeDirectory(dir); print(dir);
> run("Image Sequence... ", "dir=[&dir] format=TIFF");
>
> run("Close All");
> run("Image Sequence...", "open=&dir sort"); rename("t1-head");
> run("Image Sequence...", "open=&dir sort"); rename("t2-head");
> run("Image Sequence...", "open=&dir sort"); rename("t3-head");
> run("Image Sequence...", "open=&dir sort"); rename("t4-head");
--
ImageJ mailing list:
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&data=04%7C01%7Cstein.rorvik%40sintef.no%7C8d51512b94894e9ea89c08d879a6e9a1%7Ce1f00f39604145b0b309e0210d8b32af%7C1%7C1%7C637393105084804385%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C1000&sdata=K2nzP4Pub2XBP2vlIENYPFL%2BS8uHLdmGYs%2F4zmGb0fM%3D&reserved=0--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html