Sorting options available for this?
Posted: 31 May 2011 20:24
I have this little script that shows up the "recents" folder.
How can I have this to display entries sorted by date (asc/desc) and by "semi-extension" (asc/desc, being "file name.EXT.lnk" the default naming on that folder; being "lnk" the actual extension won't affect nothing if I'm trying to group linked files as per their original extensions)?
Code: Select all
$file = inputselect("Select a Recent File to be Opened", formatlist(listfolder(%user%\recent), s, "|"), , 1, , 800, 400, "Recents");
$dot = substr("$file", -8, 1);
IF ($dot == ".") { open $file; }
//try to test SIZE either - IF == 0, OPEN
ELSEIF ($dot != ".") { #340; goto $file; #1046; //340 new tab, 1046 go to focused .lnk target file
$cnt = getinfo("CountSelected");
IF ($cnt == 1) { open <curitem>; #351; } //351 - close current tab
ELSEIF ($cnt != 1) { }
}
status "ok!";