On Fri, Jun 21, 2013 at 2:54 PM, cfost <
[hidden email]> wrote:
> as soon as a new summary is created from
> batch processing in ImageJ, can Excel know to open it?
>
> My end goal is for images to be opened in ImageJ, processed, and the results
> auto-emailed. (I know VBA can be used with Excel to send emails).
>
> I'm mainly working on a Mac
>
You can do this with a macro, though you would have to both, run the
command that does the batch processing for you, and save the Results
Table file. To save the Results Table use:
selectWindow("Results");
saveAs("results", "/path/to/save.txt");
To send the e-mail, use the exec() macro command. Here are some examples:
http://imagej.nih.gov/ij/macros/ExecExamples.txtThis article describes how to send an e-mail using Outlook from the
command line (though I think it only applies to Windows; hopefully the
Mac equivalent is similar enough)
http://support.microsoft.com/kb/192341I don't see a way to attach the data, so what you could do instead is
store the Results Table as a string in a variable and set that
variable to to be the e-mail body in the exec() command.
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html