Adium Automatic Reconnect

From Wurst-Wasser.net
Revision as of 23:37, 23 February 2007 by Heiko (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

My DSL ISP disconnects me every 24 hours. So I set up a timer to automatically disconnect me, when I'm not online (around 5:15am). Each time Adium gets disconnected and won't reconnect automatically. This is, what my script does, it simply disconnects (just to be sure) and reconnects.

tell application "Adium"
repeat with a in (accounts)
disconnect a
connect a
end repeat
end tell

Save this script als Application, and add something like this to your crontab:

40 05 * * * open /Users/heiko/bin/Adium\ Reconnect.app >> /dev/null #2>&1


Thats it.