Jump to content
sepulchra

textexpander import

Recommended Posts

Is there a workflow for importing textexpander snippets into alfred snippets?

 

I have been searching around, but have not had much luck.

 

 

Thanks,

Michael

Share this post


Link to post

 

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

 

Hi Daniel, 

 

Thanks a lot for your web app. Really helpful!

 

Actually I've met some problem. 

 

I have 2 groups in Text Expander.  First I exported the first group and used your web-app and converted successfully.. Then I tried to convert the 2nd group but failed, and got the error message as : ERR_INVALID_RESPONSE

 

After that I merged the 2 groups in 1 and exported it, this time I was trying to be smarter to use safari to get the job done. But when I uploaded, the browser automatically downloaded a html file with the content like msg below: 

 

 

TypeError: Cannot read property 'replace' of undefined

   at transformSnippet (/home/danjel/te2a3-server/node_modules/textexpander-to-alfred3/textexpander-to-alfred3.js:31:35)
   at Array.map (native)
   at textexpander2Alfred (/home/danjel/te2a3-server/node_modules/textexpander-to-alfred3/textexpander-to-alfred3.js:69: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)
   at onFinish (/home/danjel/te2a3-server/node_modules/multer/node_modules/on-finished/index.js:100:5)
   at callback (/home/danjel/te2a3-server/node_modules/multer/node_modules/on-finished/node_modules/ee-first/index.js:55:10)

 

 

Just want you know what happened. Thanks again for your effort!!!

 

Best, 

 

Bryan

Share this post


Link to post

Hi Daniel, 

 

Thanks a lot for your web app. Really helpful!

 

Actually I've met some problem. 

 

I have 2 groups in Text Expander.  First I exported the first group and used your web-app and converted successfully.. Then I tried to convert the 2nd group but failed, and got the error message as : ERR_INVALID_RESPONSE

 

After that I merged the 2 groups in 1 and exported it, this time I was trying to be smarter to use safari to get the job done. But when I uploaded, the browser automatically downloaded a html file with the content like msg below: 

 

 

TypeError: Cannot read property 'replace' of undefined

   at transformSnippet (/home/danjel/te2a3-server/node_modules/textexpander-to-alfred3/textexpander-to-alfred3.js:31:35)
   at Array.map (native)
   at textexpander2Alfred (/home/danjel/te2a3-server/node_modules/textexpander-to-alfred3/textexpander-to-alfred3.js:69: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)
   at onFinish (/home/danjel/te2a3-server/node_modules/multer/node_modules/on-finished/index.js:100:5)
   at callback (/home/danjel/te2a3-server/node_modules/multer/node_modules/on-finished/node_modules/ee-first/index.js:55:10)

 

 

Just want you know what happened. Thanks again for your effort!!!

 

Best, 

 

Bryan

 

Based on the Error message, it seems to be a problem with your file. The undefined variable is the plain text part of the snippet. Maybe the error occurs if your TextExpander snippet is RichText or images? Can you upload the file somewhere and send it to me, so I can have a look?

Share this post


Link to post

Based on the Error message, it seems to be a problem with your file. The undefined variable is the plain text part of the snippet. Maybe the error occurs if your TextExpander snippet is RichText or images? Can you upload the file somewhere and send it to me, so I can have a look?

Hi Daniel,

 

I've shared you the file via Google Drive. 

 

Really appreciate your help on this!!

 

Best, 

 

Bryan

Share this post


Link to post

Hi Daniel,

 

I've shared you the file via Google Drive. 

 

Really appreciate your help on this!!

 

Best, 

 

Bryan

 

Hey Bryan, I had a look and the problem was that some of your snippets didn't have neither an abbreviation nor an expansion – they seem to be completely empty. My script didn't handle this well. I just implemented a fix on the website that simply skips these empty snippets, and your file does indeed work now. Good luck, and thanks for helping out by providing your file!

Share this post


Link to post

Hey Bryan, I had a look and the problem was that some of your snippets didn't have neither an abbreviation nor an expansion – they seem to be completely empty. My script didn't handle this well. I just implemented a fix on the website that simply skips these empty snippets, and your file does indeed work now. Good luck, and thanks for helping out by providing your file!

 

This is REALLY HELPFUL!  Thanks a lot, Daniel!  I'm hoping everyone else could benefit from your great work!   :P

Share this post


Link to post
On 19/05/2016 at 9:34 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.

Share this post


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