Login  Register

Macro saving of data in the summary window

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options Options
Embed post
Permalink
Reply | Threaded
Open this post in threaded view
| More
Print post
Permalink

Macro saving of data in the summary window

Pieter Coussement
7 posts
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....

Any help?


Best regards,
Pieter

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

Re: Macro saving of data in the summary window

Rasband, Wayne (NIH/NIMH) [E]
1064 posts
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