How can I quit ImageJ from a macro?

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

How can I quit ImageJ from a macro?

arnim.jenett
A plugin I am using is badly accumulating memory if used with multiple files (batch). As a workaround during development of this plugin I would like to kill ImageJ after each run of this plugin and would restart it from a bash script which called it in the first place anyway.
Is there a way to call a "quit" signal for ImageJ form a macro?
Reply | Threaded
Open this post in threaded view
|

Re: How can I quit ImageJ from a macro?

Michael Schmid
Hi Jenetta,

you can use
   run("Quit");
but you will get the "Are you sure you want to quit ImageJ?"
dialog unless you close all windows before this.

Michael
________________________________________________________________
On 19 Jun 2007, at 20:12, aRnim wrote:

> A plugin I am using is badly accumulating memory if used with  
> multiple files
> (batch). As a workaround during development of this plugin I would  
> like to
> kill ImageJ after each run of this plugin and would restart it from  
> a bash
> script which called it in the first place anyway.
> Is there a way to call a "quit" signal for ImageJ form a macro?