1 global HandyAdiumScripts
4 tell application "Adium"
5 set newChat
to HandyAdiumScripts's
makeNewChatWindow()
6 set cw
to (
count chat
windows)
9 if (
count chat
windows)
is not cw -
1 then
10 --ooh! A helpful message.
11 --trying to close again isn't going to help... So I won't restore.
12 error (
"count chat windows is " & (
count chat
windows) &
" rather than " & (cw -
1))
14 if (
exists newChat)
then
15 --testing that closing makes something not exist
16 --Again, if this fails, not much I can do to restore.