Update to "Select Modified Today" ?

Discuss and share scripts and script files...
Post Reply
GreetingsFromPoland
Posts: 216
Joined: 29 Sep 2022 14:20

Update to "Select Modified Today" ?

Post 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.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Update to "Select Modified Today" ?

Post by jupe »

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

klownboy
Posts: 4109
Joined: 28 Feb 2012 19:27

Re: Update to "Select Modified Today" ?

Post 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.
Windows 11, 22H2 Build 22621.1555 at 100% 2560x1440

GreetingsFromPoland
Posts: 216
Joined: 29 Sep 2022 14:20

Re: Update to "Select Modified Today" ?

Post 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.

jupe
Posts: 2757
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: Update to "Select Modified Today" ?

Post by jupe »

You mentioned folders/files in the OP else I would have assumed files only, anyway easy change:

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

Post Reply