Acidham Posted March 25, 2022 Author Share Posted March 25, 2022 Yep this is cause by Apple's removal of Python 2 in macos 12.3. Please read: https://www.alfredapp.com/help/kb/python-2-monterey/ But I had to create symlink `/usr/local/bin/python' because creation of symlink in `/usr/bin/python`is not allowed. Second, you need to change python files shebang to `#!/usr/local/bin/python` Link to comment
TheNafri Posted March 25, 2022 Share Posted March 25, 2022 5 minutes ago, Acidham said: Yep this is cause by Apple's removal of Python 2 in macos 12.3. Please read: https://www.alfredapp.com/help/kb/python-2-monterey/ But I had to create symlink `/usr/local/bin/python' because creation of symlink in `/usr/bin/python`is not allowed. Second, you need to change python files shebang to `#!/usr/local/bin/python` Sorry, i'm kinda illiterate when it comes to this stuff. Do I just need to reinstall python 2 with the steps mentioned in the link? I do not know what this means: "you need to change python files shebang to `#!/usr/local/bin/python' " Link to comment
Acidham Posted March 25, 2022 Author Share Posted March 25, 2022 1. Follow the steps on the link 2 use /usr/local/bin instead of /usr/bin 3. open workflow in Alfred 4. when you double click on script filter step it opens a dialog. click on “open file” 5. change first line, the starting with #! to #!/usr/local/bin/python Link to comment
Acidham Posted March 25, 2022 Author Share Posted March 25, 2022 I released a new version which requires python3 and works with macOS 12.3 The update will run automatically but in case you would like to install: https://github.com/Acidham/recent-files-in-folders/releases/tag/v4.2.0 cands 1 Link to comment
TheNafri Posted March 25, 2022 Share Posted March 25, 2022 1 hour ago, Acidham said: I released a new version which requires python3 and works with macOS 12.3 The update will run automatically but in case you would like to install: https://github.com/Acidham/recent-files-in-folders/releases/tag/v4.2.0 This worked! Thank you! Link to comment
cands Posted March 26, 2022 Share Posted March 26, 2022 Thanks a lot for updating to work with python3, works great on macOS 12.3! I wonder would it be possible to add a feature to be able to search for strings anywhere in the filename (possibly fuzzy search as well)? Sometimes I don't find files because the string I'm searching for is not at the start of the filename, which seems to be required now. Link to comment
Acidham Posted March 26, 2022 Author Share Posted March 26, 2022 Not sure why I implemented that way ツ I changed it to search in substring! cands 1 Link to comment
Ghost Posted March 26, 2022 Share Posted March 26, 2022 I downloaded 4.2 (totally new user). I get the message "add folder to config" I press enter, but nothing happens. Any ideas? @Acidham Thanks in advance! Link to comment
Acidham Posted March 26, 2022 Author Share Posted March 26, 2022 @Ghostplease open workflow and send log output (Bug icon top right) Note: you need to install Python 3.8 or later Link to comment
Ghost Posted March 26, 2022 Share Posted March 26, 2022 @Acidham 11:48:38.954] Logging Started... [11:48:44.735] Recent files in Folder[Script Filter] Queuing argument '(null)' [11:48:44.880] Recent files in Folder[Script Filter] Script with argv '(null)' finished [11:48:44.882] Recent files in Folder[Script Filter] { "items": [ { "title": "Add Folder(s) to config", "subtitle": "Your run WF for the first time, please add folder(s) via file action first", "valid": false, "icon": { "type": "image", "path": "attention.png" } } ] } I just installed Python 3.10.4, but same issue. Not sure what I am doing wrong tbh. I just updated to 12.3 last night. Link to comment
Acidham Posted March 26, 2022 Author Share Posted March 26, 2022 ahhh that is a good result. the issue is that your list of folders is empty. search for a folder in alfred e.g. downloads folder and press “Tab”, “add to recent folders”. after this you should be able to look up recent files on Downloads. Link to comment
Ghost Posted March 26, 2022 Share Posted March 26, 2022 I don't get the option "add to recent folders", once I press tab Link to comment
Acidham Posted March 26, 2022 Author Share Posted March 26, 2022 What did you configure on Alfred Preferences? Lexyz 1 Link to comment
Ghost Posted March 26, 2022 Share Posted March 26, 2022 I never configured that, so I had the default (first 3 boxes checked). I like the tab action better. That did the trick! Thanks a lot @Acidham, your support is top notch. Acidham 1 Link to comment
Lexyz Posted May 18, 2022 Share Posted May 18, 2022 (edited) Got same issue with tab action does not showup, was about to create a github issue but luckily find the solution here I believe that issue should be documented for alfred noobs like some of us here 😀 Edited May 18, 2022 by Lexyz Link to comment
Acidham Posted May 18, 2022 Author Share Posted May 18, 2022 3 hours ago, Lexyz said: Got same issue with tab action does not showup, was about to create a github issue but luckily find the solution here I believe that issue should be documented for alfred noobs like some of us here 😀 Makes sense...done! Lexyz 1 Link to comment
Yixin Posted November 28, 2022 Share Posted November 28, 2022 Hi, I have installed the updated version of this workflow, but when I type "rc" in the terminal the workflow won't show up. (The strange thing is when I just type "r", the workflow appears, but if I use space to finish the string or just type out rc, the workflow disappears. BTW, the same thing happens with the switch sound output workflow as well...) When I first installed the workflow, it worked and let me add folder to recent folder. But then it stopped working. Any ideas on how to solve this problem? Thanks a lot! the bug report: [19:56:36.404] Logging Started... [19:56:44.923] Recent files in Folder[Script Filter] Queuing argument '(null)' [19:56:45.009] Recent files in Folder[Script Filter] Script with argv '(null)' finished [19:56:45.014] ERROR: Recent files in Folder[Script Filter] Code 1: xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun Link to comment
Acidham Posted November 28, 2022 Author Share Posted November 28, 2022 (edited) What is the result of python3 -V? For me, it looks like issues with Xcode. Do the following: xcode-select --install installes Command Line Dev toolsIf the above does not help please try sudo xcode-select --reset Edited November 28, 2022 by Acidham Yixin 1 Link to comment
Yixin Posted November 28, 2022 Share Posted November 28, 2022 Thanks! indeed it is issue with Xcode. I installed Command Line Dev tools and this does the trick! I realized that the workflow stopped working after I uninstalled Xcode... 1 hour ago, Acidham said: What is the result of python3 -V? For me, it looks like issues with Xcode. Do the following: xcode-select --install installes Command Line Dev tools If the above does not help please try sudo xcode-select --reset Link to comment
Yixin Posted November 28, 2022 Share Posted November 28, 2022 btw, how do I access the advanced configuration? is there a way to do this in the terminal? Huge Thanks to Acidham again! Link to comment
Acidham Posted November 28, 2022 Author Share Posted November 28, 2022 (edited) Forgot to migrate this workflow to Alfred 5 with User Configuration. I just uploaded new release v4.2.3 with User Configuration. https://github.com/Acidham/recent-files-in-folders/releases/latest Edited November 28, 2022 by Acidham Link to comment
Yixin Posted November 29, 2022 Share Posted November 29, 2022 Thanks, that works great! Is it possible to specify the file types to search for each recent file folder? Link to comment
Acidham Posted November 29, 2022 Author Share Posted November 29, 2022 nope just globally 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