primeminister Posted April 16, 2018 Share Posted April 16, 2018 Hi all, I accidentally deleted the whole collection instead of one snippet. Is there a way to retrieve that? Maybe something on the file system in the Library folder? Thanks in advance for your help. - Charlie Link to comment
Vero Posted April 16, 2018 Share Posted April 16, 2018 @primeminister Your best bet is to go to Time Machine and find your Alfred.alfredpreferences file from prior to the deletion, as this file will contain all of your snippets. You can then either replace the entire Alfred.alfredpreferences file, or navigate within the package contents to grab the folder of snippets that matches the one you've accidentally deleted. Cheers, Vero Flavinsh 1 Link to comment
primeminister Posted April 16, 2018 Author Share Posted April 16, 2018 Thanks @Vero, I did not think of that backup that I have every day Link to comment
vitor Posted April 16, 2018 Share Posted April 16, 2018 For those without backups that land here, if you sync your Alfred preferences with Dropbox you can go to the website and recover what you deleted, or revert things to a previous time. Link to comment
Andrew Posted April 17, 2018 Share Posted April 17, 2018 This thread has made me take a fresh look at how Alfred deletes snippets, and I've made a change to now move to trash for both snippets / collections and workflows instead of removing them. This will make it into the next Alfred release vitor, primeminister and i05 2 1 Link to comment
primeminister Posted April 17, 2018 Author Share Posted April 17, 2018 Great Andrew!! Link to comment
i05 Posted September 28, 2018 Share Posted September 28, 2018 Besides putting back the deleted directory from Trash (that is a great work indeed, Andrew), I found we can restore the accidentally deleted folder if you sync "Alfred.alfredpreferences" with Dropbox. Although the preference file looks a file on Mac, you can see the folder on Dropbox.com. Link to comment
Sucesso Posted October 31, 2021 Share Posted October 31, 2021 On 4/17/2018 at 10:02 AM, Andrew said: This thread has made me take a fresh look at how Alfred deletes snippets, and I've made a change to now move to trash for both snippets / collections and workflows instead of removing them. This will make it into the next Alfred release Don't mean to revive a very old thread, but is this a feature now? I don't need it now, but I always like moving to trash as an intermediate step. Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 On 4/17/2018 at 7:02 PM, Andrew said: This thread has made me take a fresh look at how Alfred deletes snippets, and I've made a change to now move to trash for both snippets / collections and workflows instead of removing them. This will make it into the next Alfred release Is this now live? I cannot even find "Trash" in the app... Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 On 4/16/2018 at 11:46 AM, vitor said: For those without backups that land here, if you sync your Alfred preferences with Dropbox you can go to the website and recover what you deleted, or revert things to a previous time. How do I sync with Dropbox? Link to comment
vitor Posted July 25, 2022 Share Posted July 25, 2022 Welcome @AlfredV, 47 minutes ago, AlfredV said: I cannot even find "Trash" in the app It refers to the macOS Trash Bin. Deleting snippets and workflows sends them there when possible. 48 minutes ago, AlfredV said: How do I sync with Dropbox? Syncing Your Alfred Settings Between Macs. Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 10 minutes ago, vitor said: Welcome @AlfredV, It refers to the macOS Trash Bin. Deleting snippets and workflows sends them there when possible. Syncing Your Alfred Settings Between Macs. I thought so, but I checked and they are not in my Trash Bin! :-( Link to comment
vitor Posted July 25, 2022 Share Posted July 25, 2022 What version of Alfred are you on, and where are your preferences stored? Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 2 minutes ago, AlfredV said: And thanks for the link to Syncing. It seems to be used for two Macs, but I guess it works for 1 just as well? Link to comment
vitor Posted July 25, 2022 Share Posted July 25, 2022 Yes, it works for a single Mac too. Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 2 minutes ago, vitor said: What version of Alfred are you on, and where are your preferences stored? I have the 4.7 You mean Alfred.alfredpreferences: users/library/application support/alfred Link to comment
vitor Posted July 25, 2022 Share Posted July 25, 2022 Can you record your screen while you’re doing the deletion? Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 1 minute ago, vitor said: Can you record your screen while you’re doing the deletion? Possibly, but there is nothing left to delete! All my snippets are gone. Link to comment
vitor Posted July 25, 2022 Share Posted July 25, 2022 (edited) How did you delete them in the first place? You’re giving information piece meal, but we need as much information as possible to understand your case. It took seven posts to reveal you can’t see your snippets, when that’s the crux of it. Please describe in detail your case and how you got to it. Edited July 25, 2022 by vitor suth 1 Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 10 minutes ago, AlfredV said: I have the 4.7 You mean Alfred.alfredpreferences: users/library/application support/alfred 5 minutes ago, vitor said: How did you delete them in the first place? You’re giving information piece meal, but we need as much information as possible to understand your case. It took seven posts to reveal you can’t see your snippets, when that’s the crux of it. Please describe in detail your case and how you got to it. <deep sigh> This thread is called Undo deletion of Snippet collection right? ALL my snippets were accidentally deleted because I used the wrong "-". This happened to me once before and I was able to retrieve them then, but no longer know how. My Time Machine has not been active for a while. BTW: the Show in Finder path is incorrect! And it is REALLY hard using finder when your name is Alfred (which mine is), because thousands of files come up. Link to comment
vitor Posted July 25, 2022 Share Posted July 25, 2022 It’s common for people to post in the wrong thread or have a tangential problem which needs a different solution. For example, deleting your snippets collection yourself by accident is different than it disappearing without you knowing why. Those issues have different causes and thus different solutions. You asked about syncing with Dropbox but that’s no longer relevant. It would only have helped if you had them synced beforehand. But I can only tell you this after knowing what you were really trying to do. I’m actively trying to help you, but to do that I need your cooperation. Only you have access to your data and the necessary information to figure out what happened. I can give you clues on how to proceed, but only if I understand the details. I just tried to delete a snippet collection and I’m seeing it in the Trash, so the feature is working. If it didn’t in your case, we need to figure out what is different about your setup. 17 minutes ago, AlfredV said: BTW: the Show in Finder path is incorrect! I don’t know what you’re referring to in this case. Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 10 minutes ago, vitor said: It’s common for people to post in the wrong thread or have a tangential problem which needs a different solution. For example, deleting your snippets collection yourself by accident is different than it disappearing without you knowing why. Those issues have different causes and thus different solutions. You asked about syncing with Dropbox but that’s no longer relevant. It would only have helped if you had them synced beforehand. But I can only tell you this after knowing what you were really trying to do. I’m actively trying to help you, but to do that I need your cooperation. Only you have access to your data and the necessary information to figure out what happened. I can give you clues on how to proceed, but only if I understand the details. I just tried to delete a snippet collection and I’m seeing it in the Trash, so the feature is working. If it didn’t in your case, we need to figure out what is different about your setup. I don’t know what you’re referring to in this case. I think I am in the right thread and appreciate your help. What would it look like in Trash? I really thought it would/should end up there. The Show in Finder path that is given when I click this option in the Advanced tab says users/library/application support/alfred But this path did not seem to exist on my Mac: there is no Library map. However, it appeared to be hidden, it is grey in the Show in Finder. I have now unhidden it. Link to comment
vitor Posted July 25, 2022 Share Posted July 25, 2022 1 minute ago, AlfredV said: I think I am in the right thread You are! 1 minute ago, AlfredV said: What would it look like in Trash? It will be a folder with the name of your collection, containing each of your snippets as JSON files. Assuming the deletion happened recently, sorting your Trash’s contents by Date Added should be a good bet. 4 minutes ago, AlfredV said: However, it appeared to be hidden Yep, macOS does it by default. Link to comment
AlfredV Posted July 25, 2022 Share Posted July 25, 2022 5 minutes ago, vitor said: You are! It will be a folder with the name of your collection, containing each of your snippets as JSON files. Assuming the deletion happened recently, sorting your Trash’s contents by Date Added should be a good bet. Yep, macOS does it by default. I found it! It is called "Default Collection" and was dated July 21 for some reason, even though I made changes today. How do I get it back into the right directory? Link to comment
vitor Posted July 25, 2022 Share Posted July 25, 2022 3 minutes ago, AlfredV said: How do I get it back into the right directory? Move the folder into ~/Library/Application Support/Alfred/Alfred.alfredpreferences/snippets. 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