Posted by
Krs5 on
Jul 27, 2020; 8:50am
URL: http://imagej.273.s1.nabble.com/problem-with-text-windows-tp5023766p5023770.html
Hi Michael,
Not sure this is correct. The below test macro runs fine on Fiji in Windows10
run("Blobs (25K)");
D = File.getDefaultDir;
saveAs("Text Image", D+"blobs.txt");
run("Text File... ", "open="+D+"blobs.txt");
selectWindow("blobs.txt");
textdump = getInfo("window.contents");
a = split(textdump);
for (i=0;i<20;i++)
print(a[i]);
File.delete(D+"blobs.txt");
Best wishes
Kees
________________________________
From: ImageJ Interest Group on behalf of Cammer, Michael <
[hidden email]>
Sent: 25 July 2020 22:44
Subject: problem with text windows
I have switched to Fiji, but am having problems with text windows.
In standard ImageJ, each text window is easily accessible from the Window menu. We can select it and then do commands such as:
selectWindow("20200725_rawdata.txt");
textdump = getInfo("window.contents");
a = split(textdump);
However, in Fiji, the text windows are in the Java text editor, are not listed in the windows menu, and getInfo("window.contents") returns an error that no window can be found.
Therefore, macros we have written for ImageJ with text windows don't work.
Assistance would be greatly appreciated.
Thank you!
Michael Cammer, Sr Research Scientist, DART Microscopy Laboratory
NYU Langone Health, 540 First Avenue, SK2 Microscopy Suite, New York, NY 10016
[hidden email]<mailto:
[hidden email]>
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fnyulmc.org%2Fmicros&data=02%7C01%7Ckrs5%40leicester.ac.uk%7C6ef40871f50b43cdc2dc08d830e3f073%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637313102853064255&sdata=f7spjvSzJL9OuBpIPs4ihIDTjSM0RkWGQGpbWwUN1gY%3D&reserved=0 https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fmicroscopynotes.com%2F&data=02%7C01%7Ckrs5%40leicester.ac.uk%7C6ef40871f50b43cdc2dc08d830e3f073%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637313102853064255&sdata=SOf2wQoUzUhczCEHSbqeKmi%2Fk10M7COOqyjylcCH%2FMY%3D&reserved=0Voice direct only, no text or messages: 1-914-309-3270 and 1-646-501-0567
--
ImageJ mailing list:
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&data=02%7C01%7Ckrs5%40leicester.ac.uk%7C6ef40871f50b43cdc2dc08d830e3f073%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C637313102853064255&sdata=e2Ez3mwGs2iAePxnGj3WRg2%2BYy7pCCqLzHjgLfUxvXk%3D&reserved=0--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html