A macro can force ImageJ to quit by calling run("Quit"). In v1.39h
and later, the "Are you sure you want to quit ImageJ?" dialog is not
displayed when a macro invokes the Quit command using run("Quit").
You can also avoid the dialog by having the macro close all the image
windows before quitting.
-wayne
On Nov 2, 2007, at 11:45 AM, Christianname Surname wrote:
> Hi all,
>
> I'm running a macro in 1.39e (using the app's front-end, not running
> the .jar) and when the macro terminates normally I'd like to
> completely
> quit ImageJ so that the computer will see no apps running and properly
> shut down at a set time.
>
> As now happens, the macro terminates normally and when shutdown time
> comes along the OS sees ImageJ is still running, tries to quit it
> and is
> presented with the "Are you sure you want to quit ImageJ?" dialog.
> And
> sits waiting for a response == no shutdown.
>
> I guess what I'm kind of hoping-for would be a quit() function to go
> along with exit().
>
> Has anyone run into this before? Thanks for any help.
>
> ·§·