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

global HandyAdiumScripts

on run
        tell application "Adium"
                set z to (get zoomable of window 1) --for later restoration
                try
                        set zoomable of window 1 to (not z)
                        --I shouldn't ever get here.
                        --If I have, I know I've screwed something up, and should revert it.
                        set zoomable of window 1 to z
                        error
                on error number num
                        if num is -2700 then error
                end try
        end tell
end run