rem:  var selected = dirTree.contentView.getItemAtIndex(dirTree.currentIndex); return selected.id; } catch (ex) { return kPersonalAddressbookURI; 
add: var selected = dirTree.builderView.getResourceAtIndex(dirTree.currentIndex) return selected.Value; 
context: function GetSelectedDirectory(){  // this can fail if the dirTree box is collapsed at startup  // and only the results pane (and card view pane) are showing  try {    if (dirTree.currentIndex < 0)      return null;    var selected = dirTree.contentView.getItemAtIndex(dirTree.currentIndex);    return selected.id;  }  catch (ex) {    return kPersonalAddressbookURI;  }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/262cd588120d062a6422435a0dff7da316a1b33d/abCommon.js/clean/mailnews/addrbook/resources/content/abCommon.js