How to renice by process name?
You can use pgrep instead of pidof on OS X. Using your example from earlier, the following should work:

renice n -p $(pgrep &lt;process name&gt;)


That said, a child started after the parent has had their priority changed should inherit the parent's priority.