Page 1 of 1

Update to "Select Modified Today" ?

Posted: 18 Mar 2023 19:30
by GreetingsFromPoland
hi! i found a select script to select folders/files that have been "modified today" in this thread (viewtopic.php?p=54696#p54696).

it is from 2010 and still works. is this still the best way to do this or is there a single "sel" command that can be used now ? i didn't see any examples that i could use in the scripting help section.

currently i have a VFO setup for "Today" and do my selections there, but i would like to add a "Select Today" command to my hamburger.

Re: Update to "Select Modified Today" ?

Posted: 18 Mar 2023 19:50
by jupe
selectitems quicksearch("ageM: d /n");

Re: Update to "Select Modified Today" ?

Posted: 18 Mar 2023 19:56
by klownboy
Now-a-days it's probably much easier and quicker to use SC quicksearch selectitems quicksearch("ageM: <= 1 d /n");

Oops jupe beat me to it.

Re: Update to "Select Modified Today" ?

Posted: 19 Mar 2023 02:41
by GreetingsFromPoland
thank you both ! it works as expected. is it possible with selectitems and/or quicksearch to only select files and not folders ? i checked the scripting help file and didn't see any special flags or parameters for these commands.

i can use this as-is, if a "files only selection" is too difficult. this one-liner works nice inside the hamburger.

Re: Update to "Select Modified Today" ?

Posted: 19 Mar 2023 02:43
by jupe
You mentioned folders/files in the OP else I would have assumed files only, anyway easy change:

selectitems quicksearch("ageM: d /fn");