I have been trying to find the account names in ichat for part of a script I have. Well, I can do it with this
tell application "iChat"
get name of accounts
end tell
it works, but there is a catch. Sometimes, the script does not get anyones mane but mine. I thought it was due to the buddy list not beoing open once it gets the accounts, so I made this:
tell application "iChat"
tell window "buddy list"
set visible to true
end tell
get name of accounts
end tell
I figured this would open the buddy list before it went to get the accounts, but it still does the same thing occasionally. The information I really need is my buddies account names. I do not know what would make it only see my name someteims. Any ideas? Run it on yours and see what happens if you do it a few time.