add: #ifdef XP_MACOSX var lfm = aFile.QueryInterface(Components.interfaces.nsILocalFileMac); try { return lfm.bundleDisplayName; } catch (e) {  } #endif 
context:   _getDisplayNameForFile: function (aFile)  {#ifdef XP_WIN    if (aFile instanceof Components.interfaces.nsILocalFileWin) {      try {        return aFile.getVersionInfoField("FileDescription");       }      catch (e) {        // fall through to the filename      }    }#endif    // XXXben - Read the bundle name on OS X.    var ios = Components.classes["@mozilla.org/network/io-service;1"]                        .getService(Components.interfaces.nsIIOService);    var url = ios.newFileURI(aFile).QueryInterface(Components.interfaces.nsIURL);    return url.fileName;  },  
meta: 10234	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/10234/a92bdad28856e8cd1dce7c28d5fa9f2aca804fc9/downloadactions.js/clean/browser/components/preferences/downloadactions.js