For anyone else getting annoying com.hp.help.tocgenerator messages
Dec 14 09:35:04 iMac com.apple.launchd.peruser.502[15393] (com.hp.help.tocgenerator): Throttling respawn: Will start in 7 seconds
Dec 14 09:35:11 iMac com.apple.launchd.peruser.501[11945] (com.hp.help.tocgenerator): Throttling respawn: Will start in 3 seconds
Dec 14 09:35:14 iMac com.apple.launchd.peruser.502[15393] (com.hp.help.tocgenerator): Throttling respawn: Will start in 7 seconds
Dec 14 09:35:21 iMac com.apple.launchd.peruser.501[11945] (com.hp.help.tocgenerator): Throttling respawn: Will start in 3 seconds
And you knew it was related to some HP software -- maybe the printer software -- but weren't sure what was going on or how to get rid of it, here's an answer courtesy of 'Jourh':
http://h30434.www3.hp.com/t5/Mac-printing-and-scanning/PhotoSmart-C4280-repeatin g-error-messages-in-system-log/td-p/413203
This is because the HP Installer has set up what's called a LaunchAgent in MacOS to generate the table of contents in it's help directory. After looking at it in some depth, it appears to me that this need only be run once after installing, yet the installer registers it as a LaunchAgent that should be running all the time. Since the TOCGenerator program does it's thing and immediately quits, LaunchServices just immediately restarts it. After so many cycles of this, LaunchServices throttles it to some number of seconds between invocations and writes a message to the syslog. The message is "harmless" but does indicate that your computer is running this program needlessly over and over and over.
You should be able to stop the LaunchAgent by running the following command from the terminal:
*launchctl unload /Library/LaunchAgents/com.hp.help.tocgenerator.plist*
At this point, it will stop trying to respawn, but next time you reboot, it will come back; The easiest way to get rid of it permanently (after stopping it with the above command) would be to delete the plist file with the following command:
*sudo rm -f /Library/LaunchAgents/com.hp.help.tocgenerator.plist*
That will prompt you for your administrator password, since the file is a system file.
If you're not comfortable using Terminal, you can use the Finder to navigate to /Library/LaunchAgents and drag the file named com.hp.help.tocgenerator.plist to the Trash, and reboot.
As one might expect, by doing this you're mucking around with what HP installed, and you do so at your own risk, but this approach worked fine for me with no outward ill effects.
I hope this helps others as it helped me.
iMac 9,1 / MBP 3,1, Mac OS X (10.6.6), MBP (10.6.6)/iMac (10.6.6)/iPhone 4 (4.1)/iPad (4.2.1)