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"
try
set frontmost to false
error
on error number num --trap all errors
if num is -2700 then error -- if the error is the default error, caused by the 'error' directive, pass it along the chain
--otherwise, the command threw correctly
end try
end tell
end run