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 / GetChatsAccount.applescript

global HandyAdiumScripts

on run
        tell application "Adium"
                set newChat to HandyAdiumScripts's makeNewChat()
                if (get account of newChat) is not account (HandyAdiumScripts's defaultAccount) then
                        -- this tests both account's objectSpecifier and chat's account
                        -- method
                        close newChat --restore
                        error
                end
                close newChat --restore
        end tell
end run