adium/adium

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)
global HandyAdiumScripts
on run
tell application "Adium"
set r to (get resizable of window 1) --for later restoration
try
set resizable of window 1 to (not r)
--should not get here
set resizable of window 1 to r
error
on error number num
if num is -2700 then error
end try
end tell
end run