Recent Folders from Finder on Stream Deck

I’m not asking anyone to code it for me. I'm pretty fluent in js and can find my way around apple scripts. I was just hoping maybe someone could save me the headache of digging through documentation.

Does anyone know how to fetch the recent folders in finder? I want to configure my stream deck to have those as options

Try something like this (shell command):

mdfind 'kMDItemLastUsedDate > $time.today(-7) && kMDItemContentType == "public.folder"' -0 | xargs -0 ls -ldt | head

I was using mdfind today, so I knew where to start…

Come back and post a sample preset when you have it working, I’d like to see it!

Perfect thanks so much. I’ll bump this once I get around to working on it.