Skip to main content
Question

Apple Sidebar settings, Mac OS X 10.8.2 - unique IDs?

  • January 10, 2013
  • 3 replies
  • 19 views

Forum|alt.badge.img+12

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!

3 replies

Forum|alt.badge.img+12
  • Author
  • Valued Contributor
  • January 14, 2013

anyone?


jhbush
Forum|alt.badge.img+27
  • Esteemed Contributor
  • January 14, 2013

Forum|alt.badge.img+6
  • Contributor
  • March 13, 2013

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