Login  Register

Re: getting all open windows' titles?

Posted by gankaku on Jan 30, 2015; 6:45am
URL: http://imagej.273.s1.nabble.com/getting-all-open-windows-titles-tp5011380p5011383.html

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