That works, it took 27 seconds to find 57 of 986 apps. I'm not sure I ever gave the old version that long, as it used to take only a few seconds at most before something changed.
Logging grows by ~40 lines per second on my machine, which feels slow. Nothing untoward in there, apps listed are as expected.
I notice that when you close the alfred window the mds command keeps running. So if I invoke rq multiple times (for example when I think it's not working, oops) then there will be multiple scans happening at once. Can that be avoided?
The mdfind is aspect is pretty much instant, as confirmed on the command line. So the slow bit is the checking? Which is surprising. Maybe the use of osascript for the app_as_json function is slow?
[10:56:48.804] Logging Started...
[10:56:49.913] Remove Quarantine[Script Filter] Queuing argument '(null)'
[10:56:50.440] Remove Quarantine[Script Filter] Queuing argument '(null)'
[10:57:15.225] Remove Quarantine[Script Filter] Script with argv '(null)' finished
[10:57:15.232] Remove Quarantine[Script Filter] { "items": [{"title":"prima","subtitle":"/Applications/...