

I've used this with a range of programs, and all seem to work. Just replace the xxxxxxxxx with your own password.

It will also take care of the whole administrator password thing for you as well. How do I set a permanent renice level, per executable binary, independent of its PID, when, how, or why it was launched?Īfter a lot of research, I found a way to create an applescript that will launch and renice a program. For instance, if the program wasn't going to be started by launchd. I found this question and they gave a way to do it as a launch argument, but no apparent way to save it as a persistent value. Not very elegant, but it gets the job done.īut as it says, not very elegant, and I dont think this is how ATMonitor does it.

Give that script a ".command" extension and it will be double-clickable in the GUI. You can fake it, however, with a shell script that starts the app and then immediately renice's it. Now, as for permanently resetting the priority of a process, this can't be done directly. I can do it once, and it works fine, but the setting is lost on a reboot. I want to do the same thing (renice a process) on an iPad running a particular daemon, and I don't know how to set a renice permanently. So you want XYZ to get full attention all the time, you set it once and it's done. The best part is that it sticks between restarts. I use a nice (free) process manager called ATMonitor for Mac OS X that has a lot of cool hidden features, one of which is being able to click on a running process and set the "renice" from +20 (less priority) to -20 (highest priority).
