Thanks Jon
I had found a script in forum from Leo, But This Script take the selected files full name to the browser
But my need is Takes a part of the file name before the first 4 digit set. like
I_ born.in-12-octobor in 1985 not 1988
Here some time the separator can be _
or -
or .
or space
all I need to capture
I_ born.in-12-octobor in 1985
to the browser
That mean 1985
is always a 4 digit number set.
function OnClick(data) {
data.func.command.ClearFiles();
var objEnum = new Enumerator(data.func.sourcetab.selected);
while (!objEnum.atEnd()) {
var item = objEnum.item().name_stem; objEnum.moveNext();
var encoded = encodeURIComponent(item);
var search = encoded.replace(/%/g,"%%");
data.func.command.RunCommand("http://www.google.com/search?q=" + search);
}
}
If any body can please edit this script