title: Is there a way to toggle the "use audio port for" preference with apple script on mac book pro
body: <p>i wonder if there is a way to change the "use audio port for" setting on the sound preference pane in mac os x. this is a feature, which allows mac book pro users to use their audio jack for sound out- or input.</p>
  
  <p>it's quite a bit annoying, if you always have to open the system preferences and navigate to the sound pane.</p>
  
  <p>I've already tried by myself, but I ain't got any "results". I guess the most desired scripting technology should be "Apple Script" to perform this task.
  I'm completly new to apple script.</p>
  
  <p>Is there anybody which have a solution in mind? I stuck at the point of obtaining the name of this preference id.</p>
  
  <p>I couldn't find any helpful information regarding this problem so far.</p>
  
  <p>Thanks for any help.</p>
  
  <p>N.</p>