OK, this will take a few steps, but it works.
To start with, if you're not on Win200 / XP, you'll need to download the Windows Scripting Host from Microsoft:
http://msdn.microsoft.com/library/default.asp?url=/downloads/list/webdev.asp
Next, you need to create a .wsf file to do the shortcut creation (save it in the KM directory as e.g., desklink.wsf):
<package>
<job id="js">
<script language="JScript">
var WshShell = WScript.CreateObject("WScript.Shell");
strDesktop = WshShell.SpecialFolders("Desktop");
var oShellLink = WshShell.CreateShortcut(strDesktop + "\\" + WScript.Arguments(1) + ".lnk");
oShellLink.TargetPath = WScript.Arguments(0);
oShellLink.WindowStyle = 1;
oShellLink.Hotkey = "";
oShellLink.IconLocation = "C:\\Program Files\\K-Meleon\\k-meleon.exe, 0";
oShellLink.Description = "Shortcut to " + WScript.Arguments(1);
oShellLink.WorkingDirectory = strDesktop;
oShellLink.Save();
</script>
</job>
</package>
Then you need a batch file to call the Windows Script (save it in the KM as e.g., desklink.bat):
@echo off
CScript //Nologo //Job:js desklink.wsf %1 %2
Now you need a macro to call the batch file (in macros.cfg):
$LinkURL = "";
desklink {
menu = "Send to Desktop...";
$name = prompt("Name for Desktop Shortcut:", "Shortcut prompt...", "");
$name == ? $name = "" : 0;
$LinkURL == "" ? $loc = $URL : $loc = $LinkURL;
$name != "" ? exec("desklink.bat \"" . $loc . "\" \"" . $name . "\"") : 0;
}
Now create the menu entries (menus.cfg) under DocumentPopup, FrameDocumentPopup, LinkPopup, ImageLinkPopup, FrameLinkPopup and FrameImageLinkPopup:
macros(desklink)
That's it. Now you can add pages / links to the desktop as shortcuts.
Shelumi`El
Jordan
S.D.G