rem: directoriesTree.selectedItems[0].firstChild.firstChild.getAttribute('string'); 
add: directoriesList.selectedItems[0].getAttribute('string'); 
context: function selectDirectory(){  var directoriesTree = document.getElementById("directoriesTree");  if(directoriesTree && directoriesTree.selectedItems      && directoriesTree.selectedItems.length)  {    gCurrentDirectoryServer = 	  directoriesTree.selectedItems[0].firstChild.firstChild.getAttribute('label');    gCurrentDirectoryServerId = 	  directoriesTree.selectedItems[0].firstChild.firstChild.getAttribute('string');  }  else  {    gCurrentDirectoryServer = null;    gCurrentDirectoryServerId = null;  }  var editButton = document.getElementById("editButton");  var removeButton = document.getElementById("removeButton");  if(gCurrentDirectoryServer && gCurrentDirectoryServerId) {    editButton.removeAttribute("disabled");    removeButton.removeAttribute("disabled");  }  else {    editButton.setAttribute("disabled", true);    removeButton.setAttribute("disabled", true);  }}
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/d38a0937d9c93a0a9d913e2ac781e4328bb8cc73/pref-directory.js/clean/mailnews/addrbook/prefs/resources/content/pref-directory.js