Taking iChat offline
Taking iChat offline
- Subject: Taking iChat offline
- From: Chris Pepper <email@hidden>
- Date: Thu, 13 Sep 2007 10:00:00 -0400
All,
iChat gets a bit confusing if left running on multiple
machines. I want to bring all accounts offline every night. I see
that if I (re-)launch iChat, it attempts to log in all accounts.
I've tried several techniques to bring iChat offline, but I
find AppleScript confusing (/bin/sh is more my speed). The best I've
done so far has been to launch iChat if it wasn't already running,
then have it quit. This is suboptimal -- I'd like to keep it open so
conversations are not closed, and don't want my buddies to see me pop
up and then vanish when iChat launches/logs in. I tried killall, but
couldn't find a signal that makes iChat logout without quitting.
Presumably there's a reasonably straightforward way to tell
iChat to take all accounts offline, *IFF* it was running in the first
place. I can then 'open' the script from my cron, or (if it's simple
enough), embed it into my crontab directly with "osascript".
So can anyone here tell me how to do the AppleScripting part,
or give me a pointer? I assume there are many scripts that need to do
a quit-if-running, but haven't found any yet...
Thanks much,
Chris Pepper
--
Chris Pepper: <http://www.reppep.com/~pepper/>
<http://www.extrapepperoni.com/>
The Rockefeller University: <http://www.rockefeller.edu/>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden