Jump to content

Import TextExpander snippets into Alfred v3


Recommended Posts

This should help you to get started with it: https://docs.npmjs.com/getting-started/installing-node

Here is Node.js: https://nodejs.org/en/

 

After that download the zip from github and unzip it in your downloads folder.

Now you should have a folder named "textexpander-to-alfred3-master" in your downloads folder.

 

Open Terminal → Type "cd Downloads" and press "Enter" to get into your downloads folder → then "cd textexpander-to-alfred3-master" press "Enter"

to get into the folder of the textexpander converter.

 

After that type "sudo npm install -g textexpander-to-alfred3" → you will have to type in your password (it won't show any signs or stars, so don't wonder)

Type in your password and press enter. It should run your command and give you something like this:

/usr/local/bin/textexpander-to-alfred3 -> /usr/local/lib/node_modules/textexpander-to-alfred3/textexpander-to-alfred3.js
/usr/local/bin/te2a3 -> /usr/local/lib/node_modules/textexpander-to-alfred3/textexpander-to-alfred3.js
/usr/local/lib
└── textexpander-to-alfred3@0.0.3 

After that you're almost done. Export groups from TextExpander and copy pasta them into the folder "textexpander-to-alfred3-master".

As you're still in that folder via Terminal you just have to type in something like "textexpander-to-alfred3 Signatures.textexpander" depending on your exported filename. It will create a file for Alfred that you can double click and you're done :)

 

Hope that helps ^^

Edited by FroZen_X
Link to comment

 

Anyone know how to get this type of script from TextExpander working in Alfred 3 snippets?

%filltext:name=test%

 

 

You can't.

 

Currently, Alfred can do dates and times and insert the clipboard, but no other dynamic values are supported in snippets. You can't even place the cursor yet.

Link to comment
  • 2 weeks later...
  • 10 months later...
On 19/05/2016 at 9:19 PM, danieldiekmeier said:

Hey Guys! I am the creator of the script, and I just released it as a web app, so people not familiar with Node should have no problem converting their files: http://alfred.danieldiekmeier.de/

 

Thanks for your interest! <3

After receiving an email from Frown-on-my-mac this morning, and realising textexpander was disabled. I was a bit stunned. Fortunately this thread and Daniel's web app (URL in his thread above) for converting my multitude of textexpander shortcuts to Alfred snippets - solved it - and worked a treat. First time,  I lost all my folders, however by quickly re-outputting them all from inside textexpander I was able to maintain folder structure as well. Brilliant thank you.

Link to comment
  • 4 weeks later...

Hi there, 

 

as a user of Typinator - is there a similar tool to import existing Typinator lists (file.tyset) to Alfred snippets?

 

Or - perhaps more simple - to import csv-files or txt-files to a new snippet collection?

 

Best regards,

StDt

Link to comment
  • 5 months later...
On 2016-05-19 at 4:19 PM, danieldiekmeier said:

Hey Guys! I am the creator of the script, and I just released it as a web app, so people not familiar with Node should have no problem converting their files: http://alfred.danieldiekmeier.de/

 

Thanks for your interest! <3

I'm looking into Alfred as a replacement for Textexpander which renewed my subscription without warning. I tried your script however, the file format for exporting textexpander is (now or is there another way to export from textexpander than what they provide?) .csv rather than .textexpander and the web app doesn't work.

Link to comment
1 minute ago, Vero said:

@clancularius Welcome to the forum! Could you please fill in your Powerpack email address in your forum profile?  This is only visible to admins (Andrew and I) and allows us to confirm your Powerpack user status. :)

 

Cheers,
Vero

I haven't purchased anything yet so I don't know that I have a "Powerpack email address". I'm trying to learn whether the snippet features found in Alfred compare well enough to make that purchase and how difficult it might be to transfer existing textexpander snippets over.

Link to comment
  • 1 year later...
On 5/19/2016 at 3:19 PM, danieldiekmeier said:

Hey Guys! I am the creator of the script, and I just released it as a web app, so people not familiar with Node should have no problem converting their files: http://alfred.danieldiekmeier.de/

 

Thanks for your interest! ❤️

I'm a little late to the party, but this is no longer working. I tried installing the script via npm; that also did not working. I tried installing the script directly, and then running it, but apparently I was missing some dependencies.

Edited by adamrice
Link to comment
  • 2 months later...
On 5/19/2016 at 5:19 PM, danieldiekmeier said:

Hey Guys! I am the creator of the script, and I just released it as a web app, so people not familiar with Node should have no problem converting their files: http://alfred.danieldiekmeier.de/

 

Thanks for your interest! <3

 

Hey guys,

 

I've jus tried Daniel's tool and got back a html file with an error message on it. Here it is:

TypeError: Cannot read property 'replace' of undefined
   at sanitize (/home/danjel/te2a3-server/node_modules/sanitize-filename/index.js:41:5)
   at module.exports (/home/danjel/te2a3-server/node_modules/sanitize-filename/index.js:51:16)
   at transformSnippet (/home/danjel/te2a3-server/node_modules/textexpander-to-alfred3/textexpander-to-alfred3.js:29:15)
   at Array.map (native)
   at textexpander2Alfred (/home/danjel/te2a3-server/node_modules/textexpander-to-alfred3/textexpander-to-alfred3.js:71:6)
   at /home/danjel/te2a3-server/index.js:43:3
   at Layer.handle [as handle_request] (/home/danjel/te2a3-server/node_modules/express/lib/router/layer.js:95:5)
   at next (/home/danjel/te2a3-server/node_modules/express/lib/router/route.js:131:13)
   at Array.<anonymous> (/home/danjel/te2a3-server/node_modules/multer/lib/make-middleware.js:52:37)
   at listener (/home/danjel/te2a3-server/node_modules/multer/node_modules/on-finished/index.js:169:15)

Any ideas?

Link to comment
  • 1 year later...

@Christian Bailey The original script created by Daniel is still available here: 

https://github.com/danieldiekmeier/textexpander-to-alfred3

 

As he states on that page, TextExpander has likely changed since he created this script in 2016, so depending on which version of TE you're using, this may need tweaking before it works again.

 

Alfred should have no problem importing the snippets as this aspect of Alfred's Snippets feature will accept the same input as it did in Alfred 3 for compatibility reasons. :)

 

Cheers,
Vero

 

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