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)
globalHandyAdiumScripts
onrun
tellapplication"Adium"
setcto(getzoomedofwindow1)
setzoomedofwindow1tonotc
delay2--give the command time to finish, as it doesn't block.
if(getzoomedofwindow1)iscthen
--the change didn't work, so no reverting is necessary