Login  Register

Re: Macro saving of data in the summary window

Posted by Rasband, Wayne (NIH/NIMH) [E] on Aug 26, 2012; 2:02am
URL: http://imagej.273.s1.nabble.com/Macro-saving-of-data-in-the-summary-window-tp4999844p4999845.html

On Aug 25, 2012, at 4:04 PM, Pieter Coussement wrote:

> Hi,
>
> I can't figure out how to write the data from the summary window (after
> particle analysis) in to a text file.
> At least i don't now how to do this in macro mode....

These two lines of macro code save the contents of the "Summary" window as a text file in the user's home directory:

  selectWindow("Summary");
  saveAs("Text", getDirectory("home")+"Summary.txt");

-wayne

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