wrong window closing

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

wrong window closing

Cammer, Michael
We have two windows open, an image titled s_C001.tif and a text window titled s_C001.pty.

The following code, where t = s_C001.pty, closes the image, not the text window.

We are using 1.49a12.

Any help greatly appreciated.

Thank you!


//Open the metadata.
  run("Text File... ", "open=[" + path + t + "]");
  selectWindow(t);

  fulltext =getInfo("window.contents");

  // Clean up the metadata window
  print(t);  // check that the window name is really correct
  selectWindow(t);  // probably redundant, but want to make sure correct window active
  close();



===========================================================================
Michael Cammer, Microscopy Core & Dustin Lab , Skirball Institute, NYU Langone Medical Center
Cell:  914-309-3270   Lab: 212-263-3208
http://ocs.med.nyu.edu/microscopy & http://www.med.nyu.edu/skirball-lab/dustinlab/

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: wrong window closing

Krs5
Dear Michael,

close() closes the active window. Use run(Close) to close non-image windows.

Best wishes

Kees
________________________________________
From: ImageJ Interest Group [[hidden email]] on behalf of Cammer, Michael [[hidden email]]
Sent: 05 May 2014 16:45
To: [hidden email]
Subject: wrong window closing

We have two windows open, an image titled s_C001.tif and a text window titled s_C001.pty.

The following code, where t = s_C001.pty, closes the image, not the text window.

We are using 1.49a12.

Any help greatly appreciated.

Thank you!


//Open the metadata.
  run("Text File... ", "open=[" + path + t + "]");
  selectWindow(t);

  fulltext =getInfo("window.contents");

  // Clean up the metadata window
  print(t);  // check that the window name is really correct
  selectWindow(t);  // probably redundant, but want to make sure correct window active
  close();



===========================================================================
Michael Cammer, Microscopy Core & Dustin Lab , Skirball Institute, NYU Langone Medical Center
Cell:  914-309-3270   Lab: 212-263-3208
http://ocs.med.nyu.edu/microscopy & http://www.med.nyu.edu/skirball-lab/dustinlab/

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: wrong window closing

Cammer, Michael
Thank you!!

===========================================================================
Michael Cammer, Microscopy Core & Dustin Lab , Skirball Institute, NYU Langone Medical Center
Cell:  914-309-3270   Lab: 212-263-3208
http://ocs.med.nyu.edu/microscopy & http://www.med.nyu.edu/skirball-lab/dustinlab/


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Straatman, Kees (Dr.)
Sent: Monday, May 05, 2014 1:43 PM
To: [hidden email]
Subject: Re: wrong window closing

Dear Michael,

close() closes the active window. Use run(Close) to close non-image windows.

Best wishes

Kees
________________________________________
From: ImageJ Interest Group [[hidden email]] on behalf of Cammer, Michael [[hidden email]]
Sent: 05 May 2014 16:45
To: [hidden email]
Subject: wrong window closing

We have two windows open, an image titled s_C001.tif and a text window titled s_C001.pty.

The following code, where t = s_C001.pty, closes the image, not the text window.

We are using 1.49a12.

Any help greatly appreciated.

Thank you!


//Open the metadata.
  run("Text File... ", "open=[" + path + t + "]");
  selectWindow(t);

  fulltext =getInfo("window.contents");

  // Clean up the metadata window
  print(t);  // check that the window name is really correct
  selectWindow(t);  // probably redundant, but want to make sure correct window active
  close();



===========================================================================
Michael Cammer, Microscopy Core & Dustin Lab , Skirball Institute, NYU Langone Medical Center
Cell:  914-309-3270   Lab: 212-263-3208
http://ocs.med.nyu.edu/microscopy & http://www.med.nyu.edu/skirball-lab/dustinlab/

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

------------------------------------------------------------
This email message, including any attachments, is for the sole use of the intended recipient(s) and may contain information that is proprietary, confidential, and exempt from disclosure under applicable law. Any unauthorized review, use, disclosure, or distribution is prohibited. If you have received this email in error please notify the sender by return email and delete the original message. Please note, the recipient should check this email and any attachments for the presence of viruses. The organization accepts no liability for any damage caused by any virus transmitted by this email.
=================================

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html