Focus on folder list on boot?

Is it possible to have the focus on the folder tree upon starting a new lister? Instead of the file list.

Download this and drag it to Preferences / Toolbars / Scripts:

Focus on Tree.js.txt (519 Bytes)

[code]// Called by Directory Opus to initialize the script
function OnInit(initData)
{
initData.name = "Focus on Tree";
initData.desc = "New windows open with the focus on the folder tree.";
initData.copyright = "(c) 2016 Leo Davidson";
initData.version = "1.0";
initData.default_enable = true;
}

// Called when a new Lister is opened
function OnOpenLister(openListerData)
{
var cmd = DOpus.Create.Command();
cmd.SetSourceTab(openListerData.lister.activetab);
cmd.RunCommand("Set FOCUS=Tree");
}[/code]

Excellent :smiley: