title: Add an item to the Finder/Save dialog sidebar
body: <p>I'm working on a script where a user logs into a guest account on OS and is prompted for their network credentials in order to mount their network home folder (while they benefit from working on a local user folder).  </p>
  
  <p>As the guest folder is deleted when users log out, I want to discourage them from saving anything there.  I would like to replace the items on the Finder and Open/Save sidebar lists (such as "Desktop", username, "Documents", etc) with ones that would save into their network home folder.</p>
  
  <p>It is possible to do this using AppleScript or Cocoa APIs, or do I need to modify a plist and restart the Finder?  [Ack.  Looking into ~/Library/Preferences/com.apple.sidebars.plist, it isn't at all clear how I'd populate it.]</p>
  
  <p>Similar Questions:</p>
  
  <p><a href="https://stackoverflow.com/questions/375323/applescript-adding-mounted-folder-to-finder-sidebar">AppleScript: adding mounted folder to Finder Sidebar?</a></p>
  
  <ul>
  <li>suggests using fstab; this code will most likely run as a user and really, automounting at that point would be too late.</li>
  </ul>
  
  <p><a href="https://stackoverflow.com/questions/1062856/how-do-you-programmatically-put-folder-icons-on-the-finder-sidebar-given-that-yo">How do you programmatically put folder icons on the Finder sidebar, given that you have to use a custom icon for the folder?</a></p>
  
  <ul>
  <li>Says there is no Cocoa API, but that you can use a carbon-style LSSharedFileList API that is only documented in a single header file.</li>
  <li>Does anyone know of some example code to add an item to the Finder sidebar?</li>
  </ul>