Jump to content

Recommended Posts

Hi,

 

I have tons of text snippets saved in TextExpander. Like many people do. Since Alfred becomes powerful on that topic, I wanted to fully change to Alfred and leaving TextExpander behind. Why using two Apps when it can be done with just one, right? But as you can imagine, "converting" all TextExpander Snippets into Alfred by hand would be a hell of work, that I am not willing to do. As far as I'm aware, there's actually no import function to import snippets from CSV files?

 

So that would be a very handy feature to have. Or at least some kind of script that does the job ones (which most of the times would be case anyway).

 

I thought of coding a script myself in Python. But as I understand, snippets now get stored in a binary alfdb file.

 

Thank you very much!

Michael

Link to post
Share on other sites
14 hours ago, deanishe said:

 

Thanks for the answer. I knew this script already. I thought 4 years not updated it might not work on Alfred 4 since the description says it was designed for Alfred 3.

Anyways, I did a little research and found out, that it is actually very easy to create these *.alfredsnippets files which one need to import snippets into Alfred 4. Since the derickfay script describes the process a little different (to put the files into the Contents folder). Which does not work anymore, because as far as I understand, the snippets get stored into a binary *.alfdb file.

 

So I decided to write my own script and add a little spice to it: https://bit.ly/2IgVrRH 

Link to post
Share on other sites
48 minutes ago, FooFourtyOne said:

I thought 4 years not updated it might not work on Alfred 4 since the description says it was designed for Alfred 3.

 

It doesn't need updating.

 

31 minutes ago, FooFourtyOne said:

because as far as I understand, the snippets get stored into a binary *.alfdb file

 

That's just a cache (workflows can also contain snippets). Snippets still go in the snippets subdirectory of your Alfred.alfredpreferences bundle.

 

34 minutes ago, FooFourtyOne said:

these *.alfredsnippets files which one need to import snippets into Alfred 4

 

That's not required. You can still just save them as JSON files to the Alfred.alfredpreferences bundle exactly as described in the script README.

 

Link to post
Share on other sites

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