thisisb Posted March 2, 2023 Posted March 2, 2023 @vitorThanks for the quick response. Your use-case makes a lot of sense. With your proposed solution, how would I handle the creation of new folders in a directory? Add them manually each time? I frequently add new projects and save files into those various folders. Without needing to manually add each folder as it is created, is there a way to open the scope to search the entire directory and sub-directories? Perhaps this wouldn't be implemented into your official workflow, but any tips on opening it open and tweaking it myself to use in my specific workflow?
sepulchra Posted March 2, 2023 Posted March 2, 2023 15 minutes ago, vitor said: Thank you both for the kind words! It may help to understand my design goals for this specific workflow. As with @sepulchra, this is one of my most used and I tweaked it a lot to get to the current speed. The way I see it, the objective is to get as fast as possible into the contents a couple of directories and do some organising. E.g. It shows ~/Desktop and ~/Downloads, I open the most recent download—a zip which unpacks to the Desktop—then access the new thing on the Desktop to move somewhere else / change its name / grab a file from inside / … You can see why speed is crucial, I open it a bunch of times. And what’s important are the immediate children of the folders. With that in mind, while those specific changes wouldn’t fit I do think you can get (closer to) what you want. @sepulchra You can already kind of search for filetypes—but only one at a time—by typing the extension. E.g. if I type png scree I see all the Screenshot pngs on my Desktop. @thisisb What you can do is add those frequent subdirectories to the directories Workflow Environment Variable. I will eventually turn that into a proper Alfred 5 File Picker configuration, before adding to the Gallery. Thank you! this makes a ton of sense. And again -- this thing is FAST! vitor 1
Cedric Posted March 17, 2023 Posted March 17, 2023 Hello, I have been an avid user of your workflow for years. But I recently upgrated to MacOs 13, and the workflow stopped working. Here is what I get in the debugger: [12:38:09.440] ERROR: RecentlyAdded[Script Filter] Code 126: /Users/cedric/Library/Caches/com.runningwithcrayons.Alfred/Workflow Scripts/9E2D9F43-89B8-461E-ACAD-0AF96EE4D44E: line 1: ./recentlyadded: Permission denied I use the 2022.2 version. Any idea? Thanks!
vitor Posted March 17, 2023 Author Posted March 17, 2023 @Cedric Looks like your upgrade borked file permissions. Reinstall the workflow.
Cedric Posted March 17, 2023 Posted March 17, 2023 4 hours ago, vitor said: @Cedric Looks like your upgrade borked file permissions. Reinstall the workflow. Thanks it worked!
JBullard Posted April 4, 2023 Posted April 4, 2023 I had this workflow going fine until my computer had to be wiped and Ventura installed fresh. Now every time I use rda in Alfred 4 I get this error message: Directory does not exist! Check your configured directories. I'm not sure what changed. I don't remember configuring directories before; it just worked. When I go to the Alfred 4 preferences->Features, the search scope looks right... that is, all my home folders are included in the search scope. Any ideas what I can do to get this workflow back up and running?
vitor Posted April 4, 2023 Author Posted April 4, 2023 Open the workflow in Alfred Preferences and click the [x] at the top right. Then Switch to the Environment Variables tab. You should see something like: directories ~/Downloads, ~/Desktop You have to set the directories there. In the next release of the workflow, this will be easier to set up.
JBullard Posted April 5, 2023 Posted April 5, 2023 Thank you for the quick reply. I'm sorry I must still be not understanding because when I do what you suggested, those directories are listed already exactly as you wrote. And yet rda will not list the most recently added files to my ~/Downloads directory. Do I need to click the "Don't Export" checkbox? I read in an earlier post that you suggested that someone's upgrade borked their permissions and you told him/her to reinstall the workflow. I can try that if you think it will help.
vitor Posted April 5, 2023 Author Posted April 5, 2023 Yes, completely uninstall the workflow and install it again. But first, make sure Alfred as Full Disk Permissions under System Settings → Privacy & Security → Files and Folders. If it does, remove it an add it again (macOS is sometimes wonky with permissions).
JBullard Posted June 19, 2023 Posted June 19, 2023 Thanks again, Vitor. I have tried everything you suggested with no luck. I checked the Full Disk Permissions: Then I deleted the RecentlyAdded Workflow completely and reinstalled it. It is version v2022.2. Next I went to the Environment Variables as you suggested: After all this I even quit Alfred 5 and started it back up. When I try to run rda I still get this: I wouldn't keep bothering you about this but this is one of my favorite workflows! I would love to get it working again.
jptsetme Posted December 4, 2023 Posted December 4, 2023 @JBullard I ran into the same issue this morning after discovering this workflow while googling for help on creating a similar workflow for my own use. I installed the workflow having never used it before and it failed the same way you described (Directory does not exist! Check your configured directories). I confirmed that the default directories were already listed in the environment variable and found this post describing the same issue. Posting since I got it to work with a slight modification of @vitor's suggestion above. I did have to grant Full Disk Permission to Alfred, but it looks like maybe Apple moved where that granting takes place. Rather than doing it under System Settings → Privacy & Security → Files and Folders, there Full Disk Access section by itself under System Settings → Privacy & Security. I added Alfred there and the workflow immediately started working. Posting in case someone else runs into the same issue. (I'm running Sonoma 14.1.2 FWIW.) Thanks for the great workflow and now I'll spend some time trying to create one I was hunting for before.
Amusing4091 Posted January 18 Posted January 18 This workflow is awesome. Is there a way to get the first result of the items array, via automation? My end goal is to make an automation to grab the latest added file to a folder and add it to the app Yoink, which has its own applescript script that runs in Alfred (it's script is below). on run argv set pathArray to {} repeat with theString in argv set theFile to POSIX file theString as alias set end of pathArray to theFile end repeat tell application "Yoink" to open pathArray end run
vitor Posted January 18 Author Posted January 18 5 minutes ago, Amusing4091 said: This workflow is awesome. Thank you. 6 minutes ago, Amusing4091 said: Is there a way to get the first result of the items array, via automation? There’s an Automation Task for that.
Amusing4091 Posted January 18 Posted January 18 10 hours ago, vitor said: Thank you. There’s an Automation Task for that. Ah, yes, that works perfectly! For any onlookers, here's a screenshot of my setup, with that last script being the one Yoink provides.
Amusing4091 Posted January 18 Posted January 18 25 minutes ago, vitor said: There’s also Most Recently Added Path. Oh, yeah, that one replaces both of those commands... don't know how I missed that one. Thanks again!
vitor Posted February 26 Author Posted February 26 Deprecating in favour of Thumbnail Navigation, which has a Fast Entry option. It requires Alfred 5.5, currently in beta. That said, if you enjoy this workflow as is, you can keep your copy as it will continue to work. Amusing4091 1
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