Hi Bill,
f = "[Text Window Title]";
fx = substring(f, 1, lengthOf(f)-1);
if (!isOpen(fx)) run("New... ", "name="+f+" type=Table");
print(f, "Text");
array = getList("window.titles");
However, I'm not sure if renaming is possible using the macro language.
Best,
Ingo
-----Original Message-----
From: ImageJ Interest Group [mailto:
[hidden email]] On Behalf Of Bill Christens-Barry
Sent: Dienstag, 15. Oktober 2013 21:50
To:
[hidden email]
Subject: text window macro language commands?
I'd like to check for the existence of a text window having a specified name, get the equivalent (if it exists) of an imageID for a text window, rename a text window, get a list of the names of open text windows, etc., much as I do for an image windows.
Are there macro language commands for doing these that I've overlooked in my searches? If not, are there Beanshell examples for doing any of these operations?
Thanks.
Bill Christens-Barry
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html