Acidham 61 Posted February 11, 2017 Share Posted February 11, 2017 (edited) Shows recent files in a folder and opens the file, reveal in Finder or share via Dropox (requires WF http://www.packal.org/workflow/drop) Custom folders can be set in List Filter relative to home directory e.g. Desktop or Desktop:somefolder http://www.packal.org/workflow/recent-files-folder Edited February 11, 2017 by vitor Fixed packal link Link to post
Acidham 61 Posted February 18, 2017 Author Share Posted February 18, 2017 (edited) Updated to v 1.1: Shows recent files (sorted new to old) in a folder and opens the file, get file actions ,reveal in Finder or share via Dropox (requires WF http://www.packal.org/workflow/drop) custom folders can be set in List Filter relative to home directory e.g. Desktop or Desktop:somefolder Following actions are available: Enter → Opens file ALT → Enters into File Actions CTRL → Share via Dropbox (required Drop WF) CMD → Reveal in Finder http://www.packal.org/workflow/recent-files-folder Edited February 18, 2017 by Acidham Link to post
Acidham 61 Posted December 3, 2018 Author Share Posted December 3, 2018 Updated to v 2.0. Complete rewritten in Python for getting faster results. https://github.com/Acidham/recent-files-in-folders cands 1 Link to post
cands 20 Posted December 18, 2018 Share Posted December 18, 2018 (edited) Thank you, this is handy! Would it be possible to support custom date strings as shown in the results (“Added: date”)? Personally I would prefer the form YYYY-MM-DD. I realize that this can be done in the Python code, but it would be convenient if date formatting could be changed by e.g. a workflow variable or another easy way that does not require the users to tinker with the Python code. Edited December 18, 2018 by cands Link to post
Acidham 61 Posted December 18, 2018 Author Share Posted December 18, 2018 (edited) Done....date string can now be formatted in WF settings Edited December 19, 2018 by Acidham cands 1 Link to post
cands 20 Posted December 19, 2018 Share Posted December 19, 2018 14 hours ago, Acidham said: Done....date string can now be formatted in WF settings Wow, that was a really fast update! It works perfect and is very convenient to change the format in the WF settings, thank you very much! Link to post
cands 20 Posted December 21, 2018 Share Posted December 21, 2018 I noticed that the results when invoking this workflow does not behave as ordinary Alfred results, e.g. result items (files) cannot be dragged to be copied to a folder and I cannot access File Actions as usual by pressing right arrow. This limits the usefulness somewhat. Is it possible to get the result items behave as standard? I'm on macOS 10.14.2 and Alfred 3.7.1. Link to post
deanishe 1,405 Posted December 21, 2018 Share Posted December 21, 2018 Should be: they’re filepaths, AFAIK. Just add: ”type”: “file” to each feedback item, then all that should work. cands 1 Link to post
Acidham 61 Posted December 21, 2018 Author Share Posted December 21, 2018 Fixed! Thx for the feedback @cands and thank you @deanishe for your help! cands 1 Link to post
cands 20 Posted December 22, 2018 Share Posted December 22, 2018 Perfect, thank you both! Link to post
viu123 0 Posted March 15, 2019 Share Posted March 15, 2019 doesn't seem to work for me, downloads folder looks empty Link to post
Acidham 61 Posted March 15, 2019 Author Share Posted March 15, 2019 what is your absolute path to Downloads folder and what is the Arg in List Filter? Link to post
Acidham 61 Posted March 20, 2020 Author Share Posted March 20, 2020 New version 3.2.2 supports sub-directory search: Download on Git cands 1 Link to post
Acidham 61 Posted March 29, 2020 Author Share Posted March 29, 2020 New version 4.0: With version 4.0 the configuration was integrated in the Workflow from List Filter. After the upgrade it is required to setup the Folder from scratch! Please ensure to write down (or Screenshot) your current configuration. Download on Git cands 1 Link to post
joshuadwagner 1 Posted January 24 Share Posted January 24 I have several folders setup but when I press enter on one of them, to see contents, or press CMD, or CMD+Enter, I get nothing. The Alfred interface just disappears. Am I missing something in my setup? TIA. Link to post
Acidham 61 Posted January 24 Author Share Posted January 24 What is debug output when you exec the workflow? you can open the workflow in Alfred Preferences, click the bug icon top right and run the workflow. Link to post
joshuadwagner 1 Posted January 31 Share Posted January 31 Here is the screenshot. Thanks. Link to post
Acidham 61 Posted February 1 Author Share Posted February 1 Can you take a look into the log if you find any error? Or just copy the content and add it here. Does the directory /Users/jret18/Distribution contain any files? Link to post
joshuadwagner 1 Posted February 4 Share Posted February 4 All the folders that are mentioned do have files in them. I'm not sure what log you're talking about, but I just turned on the debugger and tried to use the Recent Files plugin again and copied the info below. Thanks again for your help in getting this working. Quote [19:42:14.841] Logging Started... [19:42:18.203] Recent files in Folder[Script Filter] Queuing argument '(null)' [19:42:18.469] Recent files in Folder[Script Filter] Script with argv '(null)' finished [19:42:18.474] Recent files in Folder[Script Filter] { "items": [ { "title": "jret18", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18" } }, "arg": "/Users/jret18" }, { "title": "Temp", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Temp" } }, "arg": "/Users/jret18/Temp" }, { "title": "Downloads", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Downloads" } }, "arg": "/Users/jret18/Downloads" }, { "title": "2021 unsorted", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Dropbox/Drawers/The unsorted drawer/2021 unsorted" } }, "arg": "/Users/jret18/Dropbox/Drawers/The unsorted drawer/2021 unsorted" }, { "title": "Dropbox", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Dropbox" } }, "arg": "/Users/jret18/Dropbox" }, { "title": "Distribution", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Distribution" } }, "arg": "/Users/jret18/Distribution" } ] } [19:42:29.199] Recent files in Folder[Script Filter] Processing complete [19:42:29.200] Recent files in Folder[Script Filter] Passing output '/Users/jret18' to Arg and Vars [19:42:29.241] Recent files in Folder[Arg and Vars] Processing complete [19:42:29.242] Recent files in Folder[Arg and Vars] Passing output '' to Script Filter [19:42:29.243] Recent files in Folder[Script Filter] Passing output '/Users/jret18' to Run Script [19:42:29.287] Recent files in Folder[Script Filter] Queuing argument '' [19:42:34.871] Recent files in Folder[Script Filter] Queuing argument '(null)' [19:42:34.969] Recent files in Folder[Script Filter] Script with argv '(null)' finished [19:42:35.008] Recent files in Folder[Script Filter] { "items": [ { "title": "jret18", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18" } }, "arg": "/Users/jret18" }, { "title": "Temp", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Temp" } }, "arg": "/Users/jret18/Temp" }, { "title": "Downloads", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Downloads" } }, "arg": "/Users/jret18/Downloads" }, { "title": "2021 unsorted", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Dropbox/Drawers/The unsorted drawer/2021 unsorted" } }, "arg": "/Users/jret18/Dropbox/Drawers/The unsorted drawer/2021 unsorted" }, { "title": "Dropbox", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Dropbox" } }, "arg": "/Users/jret18/Dropbox" }, { "title": "Distribution", "subtitle": "\u23ce to list Files or \u2318 for addtional actions", "mods": { "cmd": { "valid": true, "subtitle": "Enter Action Menu", "arg": "/Users/jret18/Distribution" } }, "arg": "/Users/jret18/Distribution" } ] } [19:42:41.614] Recent files in Folder[Script Filter] Processing complete [19:42:41.616] Recent files in Folder[Script Filter] Passing output '/Users/jret18' to Arg and Vars [19:42:41.617] Recent files in Folder[Arg and Vars] Processing complete [19:42:41.617] Recent files in Folder[Arg and Vars] Passing output '' to Script Filter [19:42:41.665] Recent files in Folder[Script Filter] Queuing argument '(null)' Link to post
Acidham 61 Posted February 4 Author Share Posted February 4 (edited) Ok this output looks ok and list all folders. Did you press enter on a folder before you copied the log output? If yes which one? please run again with log enabled and also choose a folder and copy paste the result. Edited February 4 by Acidham Link to post
joshuadwagner 1 Posted February 4 Share Posted February 4 I pressed enter on both folders that I tried. I also checked all the modifiers too. When I press enter Alfred disappears and does nothing. Link to post
Acidham 61 Posted February 4 Author Share Posted February 4 (edited) Hmm sound like permission Problem. Did you check that all required permissions were set: https://www.alfredapp.com/help/getting-started/permissions/ Edited February 5 by Acidham Link to post
joshuadwagner 1 Posted February 7 Share Posted February 7 I have checked that several times but everything has been correct. I did upgrade from Alfred 3 to 4 a couple months back and had trouble with some workflows after that but I assumed that they were workflow issues, not something on my side. I did remove the permissions in all the areas and add them back again and restart Alfred but I have the same issue and get the same results in the log. Obviously it's something on my side but I just have no idea what the problem is. Where is it dropping the ball? The workflow is expecting to receive a list from finder but never gets it back to display it? Link to post
Acidham 61 Posted February 7 Author Share Posted February 7 In the log that you sent in previous posts shows that the folders were properly responded back, and hopefully it will be shown in Alfred: jret18 Temp Downloads 2021 unsorted Dropbox Dropbox Distribution Let's focus on one e.g. jret18: What happens when you press ENTER on that one? What is the log showing? Don't forget to have Alfred Workflow open with debugger enabled. If it fails there must be an error (written in red) Link to post
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