rem: AddAttachment(result.value, null); 
add: var attachment = Components.classes["@mozilla.org/messengercompose/attachment;1"].createInstance(Components.interfaces.nsIMsgAttachment); attachment.url = result.value; AddAttachment(attachment); 
context: function AttachPage(){     if (!gPromptService) {       gPromptService = Components.classes["@mozilla.org/embedcomp/prompt-service;1"].getService();       gPromptService = gPromptService.QueryInterface(Components.interfaces.nsIPromptService);     }          if (gPromptService)     {        var result = {value:"http://"};        if (gPromptService.prompt(        	window,        	gComposeMsgsBundle.getString("attachPageDlogTitle"),        	gComposeMsgsBundle.getString("attachPageDlogMessage"),            result,        	null,        	{value:0}))        {			AddAttachment(result.value, null);        }     }}
meta: 5459	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5459/321184f9e318caa933671990d7acbcf552f629f0/MsgComposeCommands.js/buggy/mailnews/compose/resources/content/MsgComposeCommands.js