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?


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'

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: http://www.mikeperham.com/2011/12/30/getting-ichat-to-automatically-reconnect/

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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