onedot3, It's real easy to use this. Your MKV or any other video file should be in its own folder. Inside that folder just create a .url file that links to any site.
This is real useful. I also made a second script, so you can select the parent folders and it does the same thing. This one is for folders. I use both scripts.
function OnClick(clickData)
{
DOpus.ClearOutput();
// --------------------------------------------------------
var cmd = clickData.func.command;
cmd.deselect = false; // Prevent automatic deselection
// --------------------------------------------------------
if (clickData.func.sourcetab.selected.count == 0)
{
DOpus.Output(" (none)");
}
else
{
for (var eFile = new Enumerator(clickData.func.sourcetab.selected_dirs); !eFile.atEnd(); eFile.moveNext())
{
var sDir = eFile.item();
var eSel = DOpus.FSUtil.ReadDir(sDir);
var eItem;
var file;
var fileext;
while (eSel.complete == false)
{
eItem = eSel.Next();
file = eItem.RealPath;
fileext = eItem.ext;
DOpus.Output(file);
if (fileext == ".url")
{
DOpus.Output("^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^");
cmd.RunCommand(file);
}
}
DOpus.Output("-----------------------------------------------------------------------------------");
}
}
}