add:  } 
context:     promptForSaveToFile: function(aLauncher, aContext, aDefaultFile, aSuggestedFileExtension) {        var result = "";        const prefSvcContractID = "@mozilla.org/preferences-service;1";        const prefSvcIID = Components.interfaces.nsIPrefService;        const nsIFile = Components.interfaces.nsIFile;        const nsILocalFile = Components.interfaces.nsILocalFile;        var branch = Components.classes[prefSvcContractID].getService(prefSvcIID)                                                          .getBranch("browser.download.");        var dir = null;	  var consoleService = Components.classes['@mozilla.org/consoleservice;1']                               .getService(Components.interfaces.nsIConsoleService);        const kDownloadDirPref = "dir";        // Try and pull in download directory pref        try {            //var dirStringPath=branch.getCharPref(kDownloadDirPref);		consoleService.logStringMessage("hi");            dir = branch.getComplexValue(kDownloadDirPref, nsILocalFile);            consoleService.logStringMessage(dir);                    } catch (e) { consoleService.logStringMessage(e)}        if (dir && dir.exists())        {            if (aDefaultFile == "")                aDefaultFile = "download";            dir.append(aDefaultFile);            return dir;        }        // Use file picker to show dialog.        var picker = Components.classes[ "@mozilla.org/filepicker;1" ]                               .createInstance( nsIFilePicker );        var parent = aContext.QueryInterface( Components.interfaces.nsIInterfaceRequestor )                             .getInterface( Components.interfaces.nsIDOMWindowInternal );        picker.init( parent, null, nsIFilePicker.modeSave );        picker.defaultString = aDefaultFile;        if (aSuggestedFileExtension) {            // aSuggestedFileExtension includes the period, so strip it            picker.defaultExtension = aSuggestedFileExtension.substring(1);        } else {            try {                picker.defaultExtension = aLauncher.MIMEInfo.primaryExtension;            } catch (ex) {            }        }        var wildCardExtension = "*";        if ( aSuggestedFileExtension ) {            wildCardExtension += aSuggestedFileExtension;            picker.appendFilter( wildCardExtension, wildCardExtension );        }        picker.appendFilters( nsIFilePicker.filterAll );        if (picker.show() == nsIFilePicker.returnCancel || !picker.file) {            return null;        }        return picker.file;    },
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/ed6cd68de3afcf13fee3d2bd495dc5f28a97da63/HelperAppDlg.js/buggy/minimo/customization/HelperAppDlg.js