Javascript code:for (var oChat = new Enumerator(Messenger.CurrentChats); !oChat.atEnd(); oChat.moveNext()) { Debug.Trace(oChat.item().Handle); }