title: Set default web browser via command line?
body: <p>I'm trying to figure out how to set the default web browser on OS X via command line. I found this <a href="http://hintsforums.macworld.com/archive/index.php/t-84660.html" title="Set the default browser with Terminal or Applescript">forum post</a>, but the solution they are working out there is to open a specific URL with a specific application. I am looking for a way to set the default browser system wide. There's this neat app on GitHub, named <a href="https://github.com/nthloop/Objektiv" title="nthloop/Objektiv · GitHub">Objektiv</a>, which does exactly what I am after, but it's an app. There's a Cocoa method, apparently, to set the NSWorkSpace default browser. </p>
  
  <p>The preference file <code>com.apple.LaunchServices</code> needs to be changed for this, maybe more.</p>
  
  <p>How to set a different default browser via command line?</p>
  
  <p>Thanks for help.</p>