I want to change the Backspace hotkey so it will not go up if the current folder is "This PC/My Computer/Computer". I tried this:
@ifpath:This PC
@ifpath:else
go up back
It doesn't work.
On the topic Preventing Directory Opus from showing "Computer", Leo suggests that something like that can be done with a script and Tbone shared this:
@script jscript
function OnClick(data){
var pathNow = new String(data.func.sourcetab.path);
//current path is drive root?
if (pathNow.length==3 && pathNow.substring(1,3)==":\\"){
//drive root, do nothing but return
return;
}
data.func.command.RunCommand("Go UP BACK");
}
Before I delve myself in scripting for Opus (something I tried before, but I am not used to), I am going to ask you for help: do you guys know how I could accomplish what I want using @ifpath or with a modified version of that script?