For some reason after upgrading to Lion I have to kill the process for imagent regularly in order to use iChat. Otherwise iChat stays stuck saying “unavailable.” I don’t know exactly why this is happening to some people and not others but I’m one of the unlucky people who has been experiencing it ever since I upgraded. It seems to happen when I let my computer go to sleep. iChat doesn’t connect after the laptop wakes up.
Since it’s turned into almost a daily thing for me to open terminal and kill imagent, I decided to write that into applescript and make an icon so I can just click it. It’s only one line of applescript:
do shell script "killall imagent"
That’s all there is to it, but in case you don’t know or want to deal with compiling that yourself, you can download this pre-built version of kill-imagent.