title: Adding buttons to Finder toolbar?
body: <p>Dropbox has the option of adding a button to the Finder toolbar. It even appears in the 'Customize Toolbar...' window.
   
  I can't find any documentation on how this sort of thing is done.... Does anyone know how to do this, or can anyone point me towards some documentation or sample code?</p>
  
  <p>EDIT  ONE:</p>
  
  <p>I guess a start would be finding the location of the existing icons, and any related code.</p>
  
  <p>I noticed that Dropbox has files in Library/DropboxHelperTools/Dropbox_u501 called mach_inject_bundle_stub.bundle and FinderLoadBundle which might be doing the magic. Dropbox is also putting the 'tick' badge on Finder icons. This code might be involved:  github.com/rentzsch/mach_star</p>
  
  <p>EDIT TWO:
  A Dropbox talk by Rian Hunter about the process is here, at around 15:30
  <a href="http://blip.tv/pycon-us-videos-2009-2010-2011/pycon-2011-how-dropbox-did-it-and-how-python-helped-4896698" rel="noreferrer">http://blip.tv/pycon-us-videos-2009-2010-2011/pycon-2011-how-dropbox-did-it-and-how-python-helped-4896698</a></p>
  
  <p>Looking in the DropboxBundle file in the Dropbox_u501 shows the icons and some compiled code. The code suggests that Rian Hunter is the author: <a href="http://twitter.com/timeserena" rel="noreferrer">http://twitter.com/timeserena</a></p>
  
  <p>Rian has his own version of the Mach Star code on his github - <a href="https://github.com/rianhunter/mach_star" rel="noreferrer">https://github.com/rianhunter/mach_star</a> - tho it seems much older</p>
  
  <p>EDIT THREE</p>
  
  <p>There was a 'Code Injection Workshop' at Stanford a few weeks ago - <a href="http://stanfordacm.com/past/" rel="noreferrer">http://stanfordacm.com/past/</a> - hosted by Rian. If anyone has notes from this please let me know! </p>