• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
iChat script has stopped working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: iChat script has stopped working
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: List is in another list
  • Next by Date: Re: iChat script has stopped working
  • Previous by thread: Re: List is in another list
  • Next by thread: Re: iChat script has stopped working
  • Index(es):
    • Date
    • Thread