Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > iChat screen name via AppleScript

iChat screen name via AppleScript
Thread Tools
Fresh-Faced Recruit
Join Date: Jul 2000
Status: Offline
Reply With Quote
Mar 22, 2004, 12:12 PM
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)
Grizzled Veteran
Join Date: Sep 2003
Location: I have no idea
Status: Offline
Reply With Quote
Mar 25, 2004, 02:43 PM
Works fine in iChat 2.0 (although it doesn't respect groups).

Those cows won't know what hit 'em. They won't know what hit them even after it hits them, because they're cows.
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Privacy Policy
All times are GMT -4. The time now is 04:57 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,