Here's your fellow script friend which will do this for you...
Code: Select all
input $b, "Which type of item you want (f=file; d=directory, blank=all)?", "f";
sortby "Modified", "d";
setting SortFoldersApart, 1;
selpos 1;
$a = formatdate(report ("{modified}",1), "yyyy/mm/dd");
selfilter $a, $b, modified;
status "Selection done. Have a nice day!";
// makecoffee;
Important notice: according to your regional settings, you may need to edit the "$a = formatdate" values. Mine is dd/mm/yyyy, for instance. If you want to get the latest CREATED files, then set "(report ("{created}",1)" instead, along with the "selfilter $a, $b, created;" field.
XYplorer Beta Club