Run Script In Background


(Lenny Eiger) #1

I have a script that I need to run in the background. I use launchd to run it every 5 minutes. I would prefer if the user wasn’t taken out of what they are doing, or saw a bouncing dock icon.
This is a script I wrote a couple of years back and finally the client wants to install it… I think I had a utility that I used to set this… but it’s gone… and I would rather know what controls this so I could see ion the parameter was set… wherever it lives.
Do you folks have any idea where this gets set…
TIA


(Shane Stanley) #2

In the Info.plist file of the app, add an entry for LSBackgroundOnly and set its value to YES.


(Lenny Eiger) #3

This is terrific, Thanks.