• 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: Taking iChat offline
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Taking iChat offline


  • Subject: Re: Taking iChat offline
  • From: Sander Tekelenburg <email@hidden>
  • Date: Fri, 14 Sep 2007 04:55:27 +0200

At 10:00 -0400 UTC, on 2007-09-13, Chris Pepper wrote:

[...]

> 	Presumably there's a reasonably straightforward way to tell
> iChat to take all accounts offline, *IFF* it was running in the first
> place.

tell application "System Events"
	set iChatIsRunning to exists application process named "iChat"
end tell
if iChatIsRunning then
	tell application "iChat" to log out
end if

Or, as one liner:

tell application "System Events" to if exists application process named
"iChat" then tell application "iChat" to log out


--
Sander Tekelenburg, <http://www.euronet.nl/~tekelenb/>
 _______________________________________________
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: 
 >Taking iChat offline (From: Chris Pepper <email@hidden>)

  • Prev by Date: Paths that work fine from AS don't work when launched from the command line
  • Next by Date: Re: rsync do shell script password..
  • Previous by thread: Taking iChat offline
  • Next by thread: Paths that work fine from AS don't work when launched from the command line
  • Index(es):
    • Date
    • Thread