I have an application that normally runs with a standard graphical interface. However, for certain long-running tasks, it spawns additional processes of the same application
import AppKit info = AppKit.NSBundle.mainBundle().infoDictionary() info["LSBackgroundOnly"] = "1"
This code works for my Non-GUI background python script.