Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My Internet connection breaks quite frequently. And each time iChat shows me "connection is lost" error message. I have to click "OK" and switch my status from Offline to Available. How can I make it do that automatically?

share|improve this question
up vote 5 down vote accepted

I just googled this answer:

Basically, it says to set a cron tab to tell iChat to reconnect every 5 minutes. I have set it to repeat every minute:

$ crontab -e
* * * * *       osascript -e 'tell application "iChat" to log in'
share|improve this answer

This version checks that the app is running, so if you close it the script wont reopen it:

*/5 * * * * osascript -e 'tell application "System Events" to if (processes whose name is "iChat") exists then tell application "iChat" to log in'

Found here, by the way:

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.