Default scroll location of specific folder

I searched FAQ about this but it was about the situation when going back to previous folders.

now some of my folders are getting too many files and subfolders, everytime I access to the folder, I have to scroll down all the way to the bottom.

So I guessed that if I could set this folder's default scroll bar location to the last of it, it would be more convenient.

If the folder is progressively aggregating files or subfolders, the most recent one will be at the bottom of the folder. Still we can 'reverse-sort' the contents of the folder, but I prefer the folder to keep ascendingly sorted for better readability.

Is this possible to set 'default scroll bar location' of specific folders to the bottom of the folder, so that I wouldn't need to scroll down everytime I access that folder, keeping the folder's order intact?

and Thanks for developing and updating this really helpful application.

OnAfterFolderChange event.
e.g.

// Select Last
// (c) 2024 Ken

// This is a script for Directory Opus.
// See https://www.gpsoft.com.au/endpoints/redirect.php?page=scripts for development information.



// Called by Directory Opus to initialize the script
function OnInit(initData)
{
	initData.name = "Select Last";
	initData.version = "1.0";
	initData.copyright = "(c) 2024 Ken";
//	initData.url = "https://resource.dopus.com/c/buttons-scripts/16";
	initData.desc = "";
	initData.default_enable = true;
	initData.min_version = "13.0";


}

// Called after a new folder is read in a tab
function OnAfterFolderChange(afterFolderChangeData)
{
    path = afterFolderChangeData.tab.path;
    if (path == "D:\\" || path == "E:\\") {
	    var cmd = DOpus.Create.Command;
		DOpus.Delay(500);
		cmd.RunCommand('Select LAST')
	}
}
1 Like

Sir, it worked. Thank you!