Re: stop ij.imagej batch process from stealing focus in OSX
Posted by
marshall2k on
Jul 19, 2013; 9:48am
URL: http://imagej.273.s1.nabble.com/stop-ij-imagej-batch-process-from-stealing-focus-in-OSX-tp3687432p5004030.html
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!