• 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
Re: iChat script has stopped working
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: iChat script has stopped working


  • Subject: Re: iChat script has stopped working
  • From: Axel Luttgens <email@hidden>
  • Date: Sat, 11 Sep 2010 09:54:00 +0200

Le 11 sept. 2010 à 01:49:29, LuKreme a écrit :

> 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.
>
> [...]

I don't know for previous versions, but a quick look here at iChat 5.0.3 shows that a connection has following two properties (amongst others):

	status (away/available/offline/invisible) : My status on this service
	connection status (disconnecting/connected/connecting/disconnected, r/o) : The connection status for this account

So, testing a service's status against value connected doesn't seem to be right; perhaps were you thinking about the service's connection status?

Axel

 _______________________________________________
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: LuKreme <email@hidden>
References: 
 >iChat script has stopped working (From: LuKreme <email@hidden>)

  • Prev by Date: iChat script has stopped working
  • Next by Date: Finder crash on duplicate file statement
  • Previous by thread: iChat script has stopped working
  • Next by thread: Re: iChat script has stopped working
  • Index(es):
    • Date
    • Thread