iChat Account ID's Gosh Darn IT!

So. I’m writing a pretty elaborate ASStudio program but this specific issue relates to iChat scripting.

When you ask iChat for the account ID of a user in your buddy list with something like:

tell application “iChat”
set x to status of account “John Doe”
end tell

You don’t necessarily get the AIM handle of the active user. You seem to get either the AIM handle of a .mac account if the .mac account is ANYWHERE in their address card. That isn’t consistent but it is frequent. I’d settle for being able to get all of the possible screen names but to do that I have to sript address book. Is there anyway to ENSURE you are getting the active screen name short of opening address book and figuring out which ID is active or pulling apart the IM itself?

Thanks,
James :twisted: