Posted on 01-10-2013 03:51 PM
Hello, I've been trying to package a sidebar plist with all favorites, connected servers, and all devices except for the computer. In previous version of OS X it was pretty simple to package, but lately Apple seems to be doing some voodoo to com.apple.sidebar.plist.
When I deploy a plist that I captured via Composer (User Environment file manifest) to a lab system that is different from the source, All My Files and "Macintosh HD" won't show up in a Finder window's sidebar. Comparing plists reveal the entry for Macintosh HD is there: Macintosh HD_0x1.455d95dp+28
But when I manually change "Hard Disks" in Finder Preferences from a dash (-) to a Check, a second Macintosh HD entry is added to com.apple.sidebarlists.plist: Macintosh HD_0x1.64cada4p+28
Am I right in thinking that "Macintosh HD" is assigned a unique ID per Mac? If so, how do I package these settings for distribution?
Thank you!
Posted on 01-14-2013 02:55 PM
anyone?
Posted on 01-14-2013 03:26 PM
Maybe this will be of some help.
http://derflounder.wordpress.com/2013/01/10/updating-server-bookmarks-in-com-apple-sidebarlists-plis...
Posted on 03-13-2013 02:30 PM
What about this:
#!/bin/sh
# Sidebar
# ----------------------
echo "Set Sidebar Favorites: Show Removable. HardDisks, Ejectables, Servers"
/usr/libexec/PlistBuddy -c "Delete :favorites:ShowRemovable" ~/Library/Preferences/com.apple.sidebarlists.plist
/usr/libexec/PlistBuddy -c "Add :favorites:ShowRemovable bool true" ~/Library/Preferences/com.apple.sidebarlists.plist
/usr/libexec/PlistBuddy -c "Delete :favorites:ShowHardDisks" ~/Library/Preferences/com.apple.sidebarlists.plist
/usr/libexec/PlistBuddy -c "Add :favorites:ShowHardDisks bool true" ~/Library/Preferences/com.apple.sidebarlists.plist
/usr/libexec/PlistBuddy -c "Delete :favorites:ShowEjectables" ~/Library/Preferences/com.apple.sidebarlists.plist
/usr/libexec/PlistBuddy -c "Add :favorites:ShowEjectables bool true" ~/Library/Preferences/com.apple.sidebarlists.plist
/usr/libexec/PlistBuddy -c "Delete :favorites:ShowServers" ~/Library/Preferences/com.apple.sidebarlists.plist
/usr/libexec/PlistBuddy -c "Add :favorites:ShowServers bool true" ~/Library/Preferences/com.apple.sidebarlists.plist
From: https://github.com/jackilyn/dotfiles/blob/master/osx.sh