View Single Post
  #1  
Old March 22nd, 2004, 10:56 AM
kainjow kainjow is offline
Registered User
 
Join Date: Nov 2000
Posts: 948
Thanks: 0
Thanked 0 Times in 0 Posts
kainjow is on a distinguished road
Arrow iChat screen name via AppleScript

I am trying to get the screen name that is logged in on iChat using AppleScript and can't figure out how (or maybe it's not possible?).

This code works for me on iChat AV Beta 2.1 (v151) with 3 different screen names:

tell application "iChat"
set a to (handler of every account in (every service where name is "AIM") where status is available or status is away or status is idle)
display dialog last item in a as string
end tell

However a few other people have reported this code doesn't work and I am not able to test it out on other machines. Can anyone tell me if this shows your screen name? And what iChat version you're running?

(I'm writing a new iChat utility program...beta soon)
Reply With Quote