I am looking to install a privileged helper tool using SMJobBless.
My plist only contains the MachServices key and RunAtLoad key. The RunAtLoad is set to true as I want to be launched automatically after install.
Now, the problem is that once the helper tool is installed and launched and it completes its job successfully - it gets relaunched and this keeps happening again and again.
I have tried various things to stop it from launching again but in vain:
1. Tried to add KeepAlive to false in the plist.
2. Tried to add KeepAlive as a dictionary with the key SuccessfulExit to false.
3. Tried to make my app sleep for occult times before quitting like sleeping for 5 minutes, 10 minutes etc. but it still gets launched again.
I have basically run out of ideas, I want it to launch only when I ask and not automatically and that too again and again.
Please help. Thank you very much.
OS: Mac OS X 10.8.4 12E55
Xcode: 4.6.2 (4H1003)