Created
March 14, 2021 04:27
-
-
Save cad0p/b1d6d23e6555fd47f61189bedf577f71 to your computer and use it in GitHub Desktop.
How to convert mac text substitutions from plist to csv for export to apps like text expander and atext
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
with open('./TextSubstitutions.plist', 'rb') as _plist: | |
with open('./TextSubstitutions.csv', 'w') as _csv: | |
plistfile = plistlib.load(_plist) | |
csvfile = csv.DictWriter(_csv, fieldnames=['shortcut', 'phrase']) | |
csvfile.writeheader() | |
for data in plistfile: | |
csvfile.writerow(data) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment