i know this has been mentioned before, and i was hoping it would be fixed with the inclusion of the new version of Qt, but it appears to have gotten worse.
whenever i execute a script, PI comes to the foreground periodically, each time a file is processed. (ex: batchformatconversion, batchchannelextraction, batchdebayer, etc.) it appears to correlate with when the "pause/stop" button on the console window undims. this behavior may only happen when using apple's virtual window manager ("spaces") since i think Juan had said before he could not reproduce it.
it used to be on 1.7.0 if i started the script and changed virtual desktops, PI would stay in the background unless i put PI back in the foreground. after that point if the script was still running, on each iteration it would raise. but on 1.7.4, it unconditionally raises itself on every script iteration.
this does not happen when an iterative process is running. it's only scripts.
this behavior renders the computer unusable until the script is finished.