getting all open windows' titles?
Posted by
Cammer, Michael on
Jan 30, 2015; 2:40am
URL: http://imagej.273.s1.nabble.com/getting-all-open-windows-titles-tp5011380.html
To fill a pull down menu in a dialog window with all open images' titles we've been using this.
titles = newArray(nImages());
for (i=1; i<=nImages(); i++) {
selectImage(i);
titles[i-1] = getTitle();
}
Is there a way to also get the titles of all open text windows?
A work around would be to get all the file names in a directory and then sort them by extension, but we're really only interested in offering the users choices from open windows.
Thank you!!
_________________________________________
Michael Cammer, Optical Microscopy Specialist
http://ocs.med.nyu.edu/microscopyLab: (212) 263-3208 Cell: (914) 309-3270
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html