function OnInit(initData) { initData.name = "Always Manual Sort"; initData.version = "1.0"; initData.copyright = "(c) 2020 Leo Davidson"; initData.url = "https://resource.dopus.com/t/how-to-give-all-my-folders-manual-sort-ability/36067/2"; initData.desc = "Turn on manual sort in every folder"; initData.default_enable = true; initData.min_version = "12.0"; } function OnAfterFolderChange(afterFolderChangeData) { var pathStr = (afterFolderChangeData.tab.path + "").toUpperCase(); if (pathStr.substr(0,2) == "::" || pathStr == "LIB://") { // DOpus.Output("Rejected " + pathStr); return; } // DOpus.Output("Accepted " + pathStr); var cmd = DOpus.Create.Command(); cmd.SetSourceTab(afterFolderChangeData.tab); cmd.RunCommand("Set MANUALSORT=on"); }