title: Use AppleScript to change System Preferences without being visible?
body: <p>I would like to change settings in System Preferences without the user seeing things happen.<br>
  If I have a script that starts like:</p>
  
  <pre><code>tell application "System Preferences"
      activate
      set current pane to pane "com.apple.preference.sound"
  end tell
  </code></pre>
  
  <p>the System Preference window will be shown to the user.<br>
  I'd like to know if there is a way to do it in the background somehow, or at least keep the window minimized.</p>
  
  <p>(Example script can be found <a href="https://stackoverflow.com/questions/6160095/how-to-use-applescript-to-change-preference-pane-slider-value">in this question</a>.)</p>