Re: Taking iChat offline
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