rem: var selected = dirTree.contentView.getItemAtIndex(dirTree.currentIndex); var mailingListUri = selected.id; 
add: var selectedResource = dirTree.builderView.getResourceAtIndex(dirTree.currentIndex); var mailingListUri = selectedResource.Value; 
context: function GetSelectedAddressesFromDirTree() {  var addresses = "";  if (dirTree.currentIndex >= 0) {    var selected = dirTree.contentView.getItemAtIndex(dirTree.currentIndex);    var mailingListUri = selected.id;    var directory = GetDirectoryFromURI(mailingListUri);    if (directory.isMailList) {      var listCardsCount = directory.addressLists.Count();      var cards = new Array(listCardsCount);      for ( var i = 0;  i < listCardsCount; i++ ) {        var card = directory.addressLists.GetElementAt(i);        card = card.QueryInterface(Components.interfaces.nsIAbCard);        cards[i] = card;      }      addresses = GetAddressesForCards(cards);    }  }  return addresses;}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/262cd588120d062a6422435a0dff7da316a1b33d/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js