Correct usage of SMJobBless for single action?

320 Views Asked by At

I'm running a little tool to run an action that has a start and end (it's an installer). I don't want to leave things lying around the filesystem (or the launchd config) after the installer runs. If it ever runs again it can re-blessed etc.

Is this the right approach to take for jobs that will only run once?

(also if you're knowledgable, take a look at 11557026, it needs an answer!)

1

There are 1 best solutions below

0
On BEST ANSWER

The answer was no, SMJobSubmit is the right thing to use, as per this question: Can SMJobSubmit() be used to execute a privileged helper installed by SMJobBless?