iChat script has stopped working
iChat script has stopped working
- Subject: iChat script has stopped working
- From: LuKreme <email@hidden>
- Date: Fri, 10 Sep 2010 17:49:29 -0600
I have the following script set to run ever 10 minutes on my machine:
#!/bin/sh
osascript <<EOF
tell application "System Events" to set theCount to the count of (processes whose name is "iChat")
if theCount = 0 then
tell application "iChat" to launch
else
tell application "iChat"
if status of service "AIM" is not connected then
log out
delay 1
log in
end if
end tell
end if
EOF
It used to work perfectly when I was using it a year or two ago, putting iChat back online anytime it got disconnected.
Recently, however, now that I have re-enabled it it simply drops all the connections every time it runs.
the event log shows:
get status of service "AIM"
--> offline
But iChat is online. In fact two .Mac ichat accounts, a Bonjour account, and a Jabber account are ALL online. did the names of the services get changed at some point?
It looks like I am now supposed to say something like
if status of service "email@hidden" is offline then…
but the trouble is this script runs for whichever user is logged in, so I don't know the AIM account id. I tried to suss out the syntax for service -> service type, but nothing I tried seemed to work.
--
Personal isn't the same as important
_______________________________________________
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