Hi Michael,
it should work with the command
nonImageTitleArray = getList("window.titles");
According to the macro language API this gives you directly the array of
non-image windows.
Hope this helps.
Kind regards,
Jan
2015-01-30 3:40 GMT+01:00 Cammer, Michael <
[hidden email]>:
> 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/microscopy> Lab: (212) 263-3208 Cell: (914) 309-3270
>
> --
> ImageJ mailing list:
http://imagej.nih.gov/ij/list.html>
--
CEO: Dr. rer. nat. Jan Brocher
phone: +49 (0)6234 917 03 39
mobile: +49 (0)176 705 746 81
e-mail:
[hidden email]
info:
[hidden email]
inquiries:
[hidden email]
web: www.biovoxxel.de
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html