Hi,
I can't figure out using JScript how to grab the selected path of the current folder? I can get the parent, but I want what's selected.
The goal of the script is to run a CMD with the current selected folder to tell dropbox to unsync.
function OnClick(clickData)
{
// --------------------------------------------------------
DOpus.ClearOutput();
// --------------------------------------------------------
var cmd = clickData.func.command;
cmd.deselect = false; // Prevent automatic deselection
// --------------------------------------------------------
run()
function run() {
var oShell = new ActiveXObject("Shell.Application");
var selectedPath = clickData.func.sourcetab.selected_dirs; // https://www.gpsoft.com.au/help/opus12/index.html#!Documents/Scripting/Tab.htm
var path = DOpus.FSUtil.Resolve(selectedPath);
DOpus.Output(path);
var cmd = "Set-Content -Path '" + path + "' -Stream com.dropbox.ignored -Value 1";
DOpus.Output(cmd);
//oShell.ShellExecute(comspec, cmd, "", "", "1");
}
}