Topic: https://brettterpstra.com/2013/01/04/mass-creating-textexpander-snippets/
hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Wil 12y, 329d ago

You saved me an hour of work tonight.  AWESOME...thanks!

hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Benjamin Alexander 13y, 16d ago

Why won't you tell why!??

Inquiring minds want to know.

hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

zettt 13y, 16d ago

Funny, I've been doing something similar some years ago. Also in Ruby and also using CSV's. "Resurrected" the project when we made the new Auto Correct groups for TextExpander 4. https://github.com/Zettt/ab...  

Yours is much better written though. I don't want to look at my script anymore.

hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

Lauri Ranta 13y, 20d ago

The script isn't escaping the contents or abbreviations of snippets. If some snippet contains < or >, TextExpander refuses to import the output file.

In case someone has missed it, TextExpander can also import CSV and TSV files directly. Save a file like this with a txt or csv (or tsv) extension and select it from File > Add Group From File.

ctrl,⌃
opt,⌥
shift,⇧
cmd,⌘

remark link
hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!

ttscoff 13y, 20d ago

I love it when you do that.

In the case of my project yesterday, a straight import wouldn't have worked, additional CSS parsing had to be done. Then I forgot that it would work with simpler CSV files, so thanks for the reminder.

I'll add escaping to the script, just in case someone still needs it.

hide preview ▲show preview ▼

What's next? verify your email address for reply notifications!