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 post
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 post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...