I am trying to migrate to a brand new install of Mountain Lion. I am trying to migrate select data from my old Lion install. Does anybody know where the text replacement definitions in System Preferences > Language & Text > Text lie? I would like to migrate them to my Mountain Lion install.
|
|
||||
|
|
|
Thanks to Sacrilicious identifying the actual file/key where the data is stored, I figured out how to copy the whole thing with a few Terminal commands. Make sure you don't have System Preferences open while doing this, or it may not work!
That should do it. Open System Preferences to double check, but you should have an identical copy of your text substitutions on your new install. |
|||||
|
|
Programmatically speaking, each substitution is a dictionary written to the NSUserReplacementItems array at the root of the ~/Library/Preferences/.GlobalPreferences.plist file. I'm not able to think of a simple way to move data, even with Xcode's Property List Editor, from 1. an invisible file 2. in a hidden folder 3. to a specific part of the new systems file. To get you started, you can read them all with
And then writing the stuff back could be done in any scripting language that speaks apple's xml, or piecemeal with the trio of:
I'll tweet it out, someone probably has the easier way and can chime in or build on this. |
|||
|
|