Created
January 23, 2015 00:13
-
-
Save sarcas/a65191391d05e97be93f to your computer and use it in GitHub Desktop.
Trying to automate the updating of the server favourites in Snow Leopard
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
`PlistBuddy -c "delete :CustomListItems" ~/Library/Preferences/sidebarlists.plist` | |
`PlistBuddy -c "add :CustomListItems array" ~/Library/Preferences/sidebarlists.plist` | |
for servername in serverlist | |
do | |
`PlistBuddy -c "add :CustomListItems:0 dict"` | |
`PlistBuddy -c "add :CustomListItems:0:Name string $servername"` | |
`PlistBuddy -c "add :CustomListItems:0:URL string $servername"` | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment