danielque Posted September 14, 2020 Share Posted September 14, 2020 (edited) I have a list of items in a spreadsheet that I'd like to have at my fingertips with Alfred snippets. I'm planning to write a script to sync a `.alfredsnippets` file with that maintained spreadsheet ~once a day. However, I opened a `.alfredsnippets` file in a text editor and can't make sense of the encoding. Can anyone help me out how to encode/decode a `.alfredsnippets` file, so I can make my dream a reality? EDIT: I found this thread which mentions https://github.com/derickfay/import-alfred-snippets, which is useful to me. Also realized the snippets in the Alfred.alfredpreferences package are stored in json, which is easy to work with. Edited September 14, 2020 by danielque Link to comment
vitor Posted September 14, 2020 Share Posted September 14, 2020 Welcome @danielque, Just to confirm, does your edit mean you no longer need help and can handle it from here? Link to comment
danielque Posted September 14, 2020 Author Share Posted September 14, 2020 Yes, thanks. It would still be helpful to know the .alfredsnippets encoding for future reference though. Link to comment
deanishe Posted September 14, 2020 Share Posted September 14, 2020 12 hours ago, danielque said: Can anyone help me out how to encode/decode a `.alfredsnippets` file, so I can make my dream a reality? They're just ZIP files with a different file extension (containing JSON files), though as you've noticed, you'll just want to save them as JSON files to Alfred's preferences bundle. 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