Login  Register

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

Posted by ctrueden on Jul 19, 2013; 5:41pm
URL: http://imagej.273.s1.nabble.com/stop-ij-imagej-batch-process-from-stealing-focus-in-OSX-tp3687432p5004046.html

Hi Marshall,

> Adding the flag -Dapple.awt.UIElement="true" should stop the process
> stealing focus. It also stops the coffee cup appearing the dock every
> cycle.

That is fantastic! Thanks very much for that tip.

> Apologies if this breaks a rule regarding resurrecting old posts

Personally I hate those rules, and everyone who "enforces" them. So thanks
again for following up!

Regards,
Curtis


On Fri, Jul 19, 2013 at 4:48 AM, marshall2k <
[hidden email]> wrote:

> todicus 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.
>
> Adding the flag -Dapple.awt.UIElement="true" should stop the process
> stealing focus. It also stops the coffee cup appearing the dock every
> cycle.
>
> Example command:
>
> java  -Dapple.awt.UIElement="true" -Xmx1024m -jar
> Applications/ImageJ/ImageJ.app/Contents/Resources/Java/ij.jar -batch
> ./macro.ijm
>
>
> Apologies if this breaks a rule regarding resurrecting old posts but I
> searched for a long time to find an answer and I hope this saves other
> people time!
>
>
>
> --
> View this message in context:
> http://imagej.1557.x6.nabble.com/stop-ij-imagej-batch-process-from-stealing-focus-in-OSX-tp3687432p5004030.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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