Search via Internet

Set the button to Script mode, and then JScript as the language.

How do I set JScript as the language?

I don't see the same things

Ah, if it's in a context menu item, add a new line at the top, above the function OnClick... line with this:

@script jscript

Splendid. thanks

You can do this more easily, and without scripting, in the new beta: Directory Opus 12.23.2 (Beta)

https://www.google.com/search?q={file|urlencode}
1 Like

And how to search w/o extension?

{file|noext|urlencode} should work

Not yet...

image

@Leo: Perfect. I should have figured it out myself... :roll_eyes:

You're right, the combination wasn't working. I've fixed that for the next beta.

Don't worry, it didn't work yet. But it will work after the next update. Glad you mentioned it, or we would not have noticed!

For me it works!

It's removing the extension for you?

Yes, tested on 2 machines and also with multiple files. As usercommand.

Stop, I was running 12.23.1 beta, there it works (wasn't it included later?). After update to 12.23.2 it's broken.

urlencode didn't exist in 12.23.1. Presumably there was nothing to encode in the filename so you thought it was working when it was just removing the extension and ignoring the new/unknown thing.

Sorry for asking, but what means encode in filename?

Got it.