• 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: LuKreme <email@hidden>
  • Date: Sat, 11 Sep 2010 20:34:35 -0600

On 11-Sep-2010, at 15:28, Axel Luttgens wrote:
>
> 	tell application "iChat"
> 		name of services whose service type is AIM
> 	end tell

Ah, that seems to have got me on the right path.

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 (first service whose service type is AIM) is offline then
			log out
			delay 1
			log in
		end if
	end tell
end if

Appears to be working. Thanks!

--
This was music that had not only escaped but had robbed a bank on the
way out. It was music with its sleeves rolled up and its top button
undone, raising its hat and grinning and stealing the silver.  It was
music that went down to the feet by way of the pelvis without paying a
call on Mr. Brain. --Soul Music

 _______________________________________________
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

References: 
 >iChat script has stopped working (From: LuKreme <email@hidden>)
 >Re: iChat script has stopped working (From: Axel Luttgens <email@hidden>)
 >Re: iChat script has stopped working (From: LuKreme <email@hidden>)
 >Re: iChat script has stopped working (From: Axel Luttgens <email@hidden>)

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