BarthGrooks Posted October 5, 2015 Share Posted October 5, 2015 Hi guys, I <3 alfred. The feature may not exist but I thought I would ask Is there a way to bring up, in the alfred window, the first 5 files of "all my files" For those who are bigger noobs that me: "All my files" is this thing: http://i.imgur.com/OsJlXbj.png Link to comment
deanishe Posted October 5, 2015 Share Posted October 5, 2015 "All My Files" is basically a "Recent Items" list.Pre-El Capitan, there was a plist file at "~/Library/Preferences/com.apple.recentitems.plist" containing the data you're after.In El Capitan, you can get the list of paths with the shell command: mdfind -onlyin $HOME '((kMDItemContentModificationDate > $time.now(-60m)) && (kMDItemContentModificationDate < $time.now()))' | grep -v /Library/ (This excludes files in "~/Library".) Alternatively, you can create a Saved Search/Smart Folder called, say, "Recent Items", and plug that into your own workflow with "mdfind -s 'Recent Items'" or my Smart Folders workflow. Link to comment
Xiang Posted October 14, 2015 Share Posted October 14, 2015 I also really hope this workflow. But I cannot understand how to build it. Link to comment
dfay Posted May 16, 2016 Share Posted May 16, 2016 (edited) @deanishe That command ins't exactly the same as what was in the recentitems plist ....it returns recently modified as opposed to recently opened files. but mdfind -onlyin $HOME '((kMDItemLastUsedDate > $time.now(-360m)) && (kMDItemLastUsedDate < $time.now()))' | grep -v /Library/ does the trick (I changed the time from 60 min to 360 min). Edited May 16, 2016 by dfay deanishe 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now