rem:   try { var filePicker = Components.classes["component: filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI); currentAttachment = filePicker.chooseFile(Bundle.GetStringFromName("chooseFileToAttach")); } 
add:  try { var fp = Components.classes["component: fp.init(window, Bundle.GetStringFromName("chooseFileToAttach"), nsIFilePicker.modeOpen); fp.appendFilters(nsIFilePicker.filterAll); if (fp.show() == nsIFilePicker.returnOK) { currentAttachment = fp.fileURL.spec; dump("nsIFilePicker - "+currentAttachment+"\n"); } } 
context: function AttachFile(){	dump("AttachFile()\n");	currentAttachment = "";	// Get a local file, converted into URL format	try {		var filePicker = Components.classes["component://netscape/filespecwithui"].createInstance();    filePicker = filePicker.QueryInterface(Components.interfaces.nsIFileSpecWithUI);		currentAttachment = filePicker.chooseFile(Bundle.GetStringFromName("chooseFileToAttach"));	}	catch (ex) {		dump("failed to get the local file to attach\n");	}		AddAttachment(currentAttachment);}
meta: 9421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/9421/f3ceed64532b78334e16ad3c3c4b491d7da640f6/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js