Hello Russell,
Well you could do a query in the System Log for the message number 88 with a "arsdoc query" and retrieve them with "arsdoc get", then you can parse the output of the error message.
Then you could script that in order to have it automated.
But from what I read, you are interested of a already done script that does it. In that case, I don't... but that shouldn't be too difficult to do...
Sincerely yours,
Alessandro