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.
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.
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.
Comments
You saved me an hour of work tonight. AWESOME...thanks!
export
Why won't you tell why!??
Inquiring minds want to know.
export
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.
export
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,⌘
export
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.
export