Today's lesson in not using Apple's private methods: somewhere between old/886f95f00431 and #9620 Apple changed their document icon setup process. Use the new methods and fix #9620.
(transplanted from 5cf365ce9352d25978ffd6073d3bc07573aba518)
#!/usr/bin/env perl
#
# Trivial script to anonymize Adium debug logs. It's a hack, and was
# put together with little time or effort. I'm sure that it could be
# made better, if someone cared enough to do so.
# 29 Dec 2007: Minor updates / fixes (e.g., add libpurple into search
# strings instead of libgaim).
# 29 Apr 2007: This script works for all the data in the log that I
# need to submit; I'm quite sure that it is *not* comprehensive. I
# only anonymized AIM, Jabber, and Sametime data that I found in my
# log; there is no support for the other protocols, and I'm guessing
# that this script won't anonymize *all* data from AIM/Jabber/Sametime