Skip to content

Instantly share code, notes, and snippets.

@sarcas
Created January 23, 2015 00:13
Show Gist options
  • Save sarcas/a65191391d05e97be93f to your computer and use it in GitHub Desktop.
Save sarcas/a65191391d05e97be93f to your computer and use it in GitHub Desktop.
Trying to automate the updating of the server favourites in Snow Leopard
`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