Faves Workflow
This was a simple idea requested by a user in the forums. It’s a workflow that allows you to mark a folder/app/file as a favorite and then provide you with quick access to those items by a keyword. I don’t know why I didn’t think of creating this before because it would come in so handy when working on projects.
Results from the workflow are actionable (marked as file items), they can be opened it by pressing Enter, browsed in Alfred by pressing Cmd+Enter, or removed from the favorites list by pressing Ctrl+Enter.
Changes
3/23/13 Added ability to filter the faves list (Suggestion by ramiro.araujo)
3/22/13 Added a fallback to the workflows class to make it read the current parent folder name if the bundle id wasn’t read.
3/22/13 Removed the folder limitation, you can now add any file, folder, or application as a favorite
3/22/13 Removed folder specific icon from items and set the result to show the referenced item’s icon instead
3/22/13 Removed the “Open in Finder” action. Left it to just open the file so it would work for applications and other files as well.
Download
I'm David Ferguson, Alfred Guru, programmer, and general nerd. I was recently added as an official member of the
This sounds fantastic! How do you add a folder to the Favorites List? Is it using the Finder “Favorites”?
Find a folder either via the regular search or via the file navigation and then press the right arrow to see a list of actions for the folder. Add to Favorites should be an option there.
How I can delete folder from FAV list?
I’m holding CTR and pressing enter but it still there after I check Fav again.
Is there some weird character or something that may would mess it up? Ctrl+Enter removed it from mine immediately?
Great ! Thank you!
This is SO useful. Thank you, David!
I add a folder but then when I type “favs” Alfred say “No favorites”
Thanks in advance
D.
I’m come across an issue with 3-4 users where I think the workflow can’t find the bundleid of the workflow. Without that, it doesn’t create the data storage directories that it needs to save the settings for the workflow. I’m currently investigating it and trying to see if I can track down the issue. I’ve only had a very small number of users report this so I’m not sure what is happening. I’ll try to post an update as soon as I track it down. Thanks
Thanks!
I’ve debugged your script and seems that $w->data is empty and so the next file_exists fails.
I found favorites.json here /Users/david/Library/Application Support/Alfred 2/Workflow Data and contain my favs.
Best Regards,
D.
I understand WHAT is happening, I just haven’t figured out WHY yet. There is nothing magical about the code. So far, the main thing I’ve found in common with the people having these issues is most seem to be running OSX 10.6. I don’t know what that would have to do with it. ‘data’ shouldn’t be empty, it just shouldn’t be full. It’s not the full path its supposed to be because ‘bundleid’ is empty. It’s not reading it from the info.plist file.
I’m running OSX 10.6
I’ve removed file_exists and works.
Last version fix this “problem” ?
“3/22/13 Added a fallback to the workflows class to make it read the current parent folder name if the bundle id wasn’t read.”
Right ?
Best Regards,
D.
Very cool. Thank you!
I get the error “AccessDeniedAccess denied” when trying to download. :/
Are you using HTTPS Everywhere? If so, try disabling it. It’s a problem with HTTPS Everywhere and the CDN that Droplr uses for hosting. I made another blog post about this the other day.
Yep, thanks! Works now.
Great workflow, David – thank you.
The ability to filter the list of favorites by simply appending a search term *directly* to the ‘fave’ keyword – e.g., ‘favede’ to find the ‘Desktop’ entry – is not obvious. Took me a while to stumble upon it.
Perhaps you could mention it in the workflow description above.
I use Get Player Automator for downloading recent telly programmes but sometimes the program cannot be put into iTunes. Being able use a fave for the movies/tvshows folder is saving me lots of navigation time. Thank you so much for such a useful workflow!