Closed kenyarmosh closed 8 years ago
That's a good point! I actually never used the label myself, that's why I didn't think of using it. Can you supply an sample TextExpander file with a few labels, so I can implement this? Would help a lot! (I actually don't have TextExpander installed anymore.)
@danieldiekmeier I figured you didn't. ;-) I actually just updating everything manually and then also removed TE. I had to do about 30 or so updates, which wasn't horrible but could be streamlined for others. So this was me just helping others in the future. Here's a couple of examples...
<dict>
<key>abbreviation</key>
<string>oas</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2014-01-27T14:18:33Z</date>
<key>label</key>
<string>savvy website</string>
<key>modificationDate</key>
<date>2014-01-27T14:18:59Z</date>
<key>plainText</key>
<string>http://savvyapps.com/</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>21CD1DA0-93DB-4FDB-A58F-9EDA835F95F0</string>
</dict>
<dict>
<key>abbreviation</key>
<string>alink</string>
<key>abbreviationMode</key>
<integer>0</integer>
<key>creationDate</key>
<date>2011-07-28T03:36:37Z</date>
<key>label</key>
<string>Amazon Book Link</string>
<key>modificationDate</key>
<date>2011-07-28T03:37:52Z</date>
<key>plainText</key>
<string>http://amzn.to/dCWyI6</string>
<key>snippetType</key>
<integer>0</integer>
<key>uuidString</key>
<string>54E9F202-9F6B-4006-A355-A7B58E5A9836</string>
</dict>
Thanks for the help, this will be released shortly. (Even though you don't need it anymore. 💃 )
Great script here. Just a heads up that the "Label" in TextExpander is not being maintained as far as I can see. It appears you're taking whatever the abbreviation was in TE and assigning it as the "Name" in Alfred. Labels from TE will be important to keep as Names in Alfred since you can search through snippets easily.
After import: https://www.dropbox.com/s/0plo21qw5qzyse4/Screenshot%202016-05-17%2020.48.24.png?dl=0 In TE: https://www.dropbox.com/s/9lr2a37mte71skk/Screenshot%202016-05-17%2020.48.55.png?dl=0