Jump to content

Programmatic syncing of snippet file to spreadsheet


Recommended Posts

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 by danielque
Link to comment
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...