Batch Mode problem

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

Batch Mode problem

ERIC
Hi dear ImageJ Experts,

In a macro when I have setBatchMode(true);

I get this error message "no window with the Title Log found" while
trying to save the Log

It works well when setBatchMode(true) line is removed.
How can I get the Log window to be selected in Batch Mode ?

Thanks

Eric

--

Eric Denarier
Grenoble Institut des Neurosciences
Inserm U836
Chemin Fortuné Ferrini
38700 La Tronche
France


Tél :33 (0)4 56 52 05 38
Fax :33 (0)4 56 52 06 57

http://neurosciences.ujf-grenoble.fr/

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

Re: Batch Mode problem

Kota Miura
On Thu, Jul 12, 2012 at 4:00 PM, Eric Denarier
<[hidden email]> wrote:

> Hi dear ImageJ Experts,
>
> In a macro when I have setBatchMode(true);
>
> I get this error message "no window with the Title Log found" while trying
> to save the Log
>
> It works well when setBatchMode(true) line is removed.
> How can I get the Log window to be selected in Batch Mode ?
>
> Thanks
>
> Eric

Hi Eric,

Instead of try activating the log window, maybe try

logtext = getInfo("log");
File.saveString(logtext, path);

Cheers,
Kota

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