William Bowling is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

wbowling / adium (fork of adium / adium)

Fork of Adium for patches/improvements

Clone this repository (size: 338.7 MB): HTTPS / SSH
hg clone https://bitbucket.org/wbowling/adium
hg clone ssh://hg@bitbucket.org/wbowling/adium

adium / ASUnitTests / CantDeleteService.applescript

global HandyAdiumScripts

on run
        tell application "Adium"
                try
                        delete service 1
                        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