I don't really understand the reason of your question.
If the link is an xls file, with mimetypes, you can automaticly open this link types with the default program
For example, in my registry, I have found this:
.xls > content Type = application/vnd.ms-excel
You have just to add a new type (if non existant) by Edit > mimetypes > add a new type
MimeType: application/vnd.ms-excel
Description: Microsoft Office Spreadsheet
Extension: xls
choose the work to do (open with default program must be ok)
and validate.
Then when you click on an xls file link, it will open Excel.
If you want to open other links type with excel, like we do for links to opens with IE, you can create a macro file in macros folder and name it excel.kmm, and restart K-Meleon.
# -- Top of the file ------------
# K-Meleon Macros (http://kmeleon.sourceforge.net/wiki/index.php?id=MacroLanguage)
# ---------- Open links with Excel ----------------------------------------------------------
#
# Dependencies : Excel
# Resources : -
# Preferences : -
#
# ------------------------------------------------------------------------------------------------------------------
# In case of manual install, registry keys can't be found and menu is grayed
# To Bypass it, just fill the content of this variable the example value adapted
# to your config
# Example :
# $_Excel_Path="\"C:\\Program Files\\Microsoft Office\\Office11\excel.exe\" %1"
# You must restart K-Meleon to take the modifications
# You have a shortcuts to modify this value: CTRL+ALT+X
$_Excel_Path="";
# ---------- General -----------------------------------------------------------------------------------------------
$_Excel_CommandLine="";
# ----- PRIVATE
$_XlsApp_OpenLinkWith="S&end Link To";
$_XlsApp_OpenURLWith="S&end To";
_XlsApp_BuildMenu{
# context menus
$__needed=true;
index($macroModules,";IE;")>-1?$__needed=false:0;
index($macroModules,";Firefox;")>-1?$__needed=false:0;
index($macroModules,";Opera;")>-1?$__needed=false:0;
index($macroModules,";Seamonkey;")>-1?$__needed=false:0;
$__needed?setmenu(LinkSave,popup,$_OpeApp_OpenLinkWith):0;
$__needed?setmenu(_Go_Open,popup,$_OpeApp_OpenURLWith):0;
}
$OnInit=$OnInit."_XlsApp_BuildMenu;";
# ---------- Opera -------------------------------------------------------------------------------------------------
Excel_OpenLink{
menugrayed=($_Excel_CommandLine=="");
exec(sub("%1",$LINKURL,$_Excel_CommandLine));
}
Excel_OpenURL{
menugrayed=($_Excel_CommandLine=="");
$__data=$URLBAR; $__data==""?$__data=$URL:0;
exec(sub("%1",$__data,$_Excel_CommandLine));
}
Excel_Path{
$ext="kmm"; &getExtensionHandler; exec(sub("%1","macros\\Excel.kmm",$cmdline));
}
# ----- PRIVATE
_Excel_CommandLine{
# try to get Excel's command line from the Windows Registry
$__data1=readreg("HKCR","Excel.Sheet\\Curver");
$__data1!=""?$__data="":$__data=readreg("HKCR",$__data1\\shell\\Open\\command\\");
$__data==""?0:$__data=$__data." %1";
$_Excel_CommandLine=$__data;
$_Excel_CommandLine==""?$_Excel_CommandLine=$_Excel_Path:0;
}
$OnStartup=$OnStartup."_Excel_CommandLine;";
_Excel_BuildMenu{
setmenu($_XlsApp_OpenLinkWith,macro,"E&xcel",Excel_OpenLink);
setmenu($_XlsApp_OpenURLWith,macro,"E&xcel",Excel_OpenURL);
}
_Excel_SetAccels{
setaccel("CTRL ALT X","macros(Excel_Path)");
}
$OnInit=$OnInit."_Excel_SetAccels;_Excel_BuildMenu;";
# ------------------------------------------------------------------------------------------------------------------
$macroModules=$macroModules."Excel;";
# -- End of the file ------------
A+
Mozilla/5.0 (x11; U; Linux x86_64; fr-FR; rv:38.0) Gecko/20100101 Ubuntu/12.04 K-Meleon/76.0
Web:
http://jujuland.pagesperso-orange.fr/
Mail : alain [dot] aupeix [at] wanadoo [dot] fr
Ubuntu 12.04 - Gramps 3.4.9 - Harbour 3.2.0 - Hwgui 2.20-3 - K-Meleon 76.0 rc