I was trying to have a script that closes an ichat video window. I only have one ichat window open at a time. I could say
close window “video chat with icedtrip”
but, the person I am talking to is variable. I tried this, but no luck. Any idaes?
tell application "iChat"
get name of accounts
set accountName to name of accounts
close (window whose name is "Video Chat with" & accountName)
end tell