Login  Register

Re: stop ij.imagej batch process from stealing focus in OSX

Posted by ctrueden on Jul 29, 2010; 10:20pm
URL: http://imagej.273.s1.nabble.com/stop-ij-imagej-batch-process-from-stealing-focus-in-OSX-tp3687432p3687433.html

Hi Todd,

I am running a macro in batch mode on OSX 10.6, and I'd like to stop it from
> bringing the process "ij.imagej" into focus on every cycle.


If the macro is completely non-interactive, you could try running the macro
from the command line in headless mode. The easiest way I know to do this is
with Fiji. See this page for details:


http://pacific.mpi-cbg.de/wiki/index.php/Scripting_Help#Running_Scripts_in_Headless_Mode

Unfortunately, I don't know a way to stop the ImageJ GUI from stealing the
focus in general. One option would be to do your batch processing in a VM
(e.g., VirtualBox) running a guest OS. Then the focus of the guest OS would
get stolen, but you wouldn't care because you would be busy working in the
host OS.

-Curtis

On Tue, Jul 20, 2010 at 3:46 PM, todicus <[hidden email]> wrote:

> I am running a macro in batch mode on OSX 10.6, and I'd like to stop it
> from
> bringing the process "ij.imagej" into focus on every cycle.  In Ubuntu,
> this
> same macro runs fully in the background, so I can continue using the
> computer without being interrupted every 10 seconds.  Is there a "hide"
> command I can insert into the macro code, or some setting in the operating
> system?
>
>      thank you very much --
>
>                  -- Todd
> --
> View this message in context:
> http://imagej.588099.n2.nabble.com/stop-ij-imagej-batch-process-from-stealing-focus-in-OSX-tp5318458p5318458.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>