adium/adium

Not only delete empty directories, but also the common symlinks to those (Headers and PrivateHeaders), as Sparkle currently breaks on them.
global HandyAdiumScripts
on run
tell application "Adium"
set newChat to HandyAdiumScripts's makeNewChat()
set n to (HandyAdiumScripts's defaultService & "." & HandyAdiumScripts's defaultParticipant)
if (get id of newChat) is not n then
close newChat --restore
error
end
close newChat --restore
end tell
end run