Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Automatically reconnect iChat if connection drops' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Automatically reconnect iChat if connection drops
Authored by: bankshot on Nov 02, '10 11:19:22AM

On my Snow Leopard machine, osascript complains about certain Adobe scripting additions not being universal (I must have gotten these from installing Photoshop Elements?). This happens because osascript normally runs as x86_64, but the Adobe additions only include i386 and ppc architectures. It is these complaints that would generate the cron emails.

Another way to get rid of the messages is to run osascript specifically using the i386 architecture:

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

The nice thing about this approach is you'll still get an email if something else goes wrong (which should be rare).

Also, you should always use crontab -e to edit the crontab; never edit the file directly.



[ Reply to This | # ]
Automatically reconnect iChat if connection drops
Authored by: enthooz on Nov 02, '10 02:54:08PM

Nice find! Thanks.

Do you have any issues with this causing your machine to "hesitate" when you tell it to sleep?



[ Reply to This | # ]
Automatically reconnect iChat if connection drops
Authored by: bankshot on Nov 26, '10 12:29:07PM

Hmm, I wouldn't know, as I never sleep the machine (it's a Mac mini that runs 24/7 as my home server as well as my primary desktop).

By the way, the arch -i386 stuff isn't needed if you download Adobe's latest version of their scripting additions (assuming the Adobe stuff was the culprit). They have a knowledge base article here:

http://kb2.adobe.com/cps/516/cpsid_51615.html



[ Reply to This | # ]