Hello, I'm new to Directory Opus scripting, so maybe anyone could help me?
I have a Folder Locations special button on a separate toolbar. I have it configured with Multifunc argument and it works fine:
MULTIFUNC KEYARGS "shift:none" "ctrl:NEW" "none:NEWTAB=findexisting"
Thing is I want to add a condition so that if currently open tab is "This PC", then the non-modified click will open favorite in the same tab. I'm struggling with the syntax. I copied a part from the default "Flat View" button, modified it a bit and here is what I got:
@if:{sourcepath}="This PC"
Favorites MULTIFUNC KEYARGS "shift:none" "ctrl:NEW" "none:none"
@if:else
Favorites MULTIFUNC KEYARGS "shift:none" "ctrl:NEW" "none:NEWTAB=findexisting"
As expected, this doesn't work, I don't even see the list of favorite locations, just the button. Can anyone help with the code or show me, where can a noob like me learn about scripting from scratch?