I would like to change settings in System Preferences without the user seeing things happen.
If I have a script that starts like:
tell application "System Preferences" activate set current pane to pane "com.apple.preference.sound" end tell
the System Preference window will be shown to the user.
I'd like to know if there is a way to do it in the background somehow, or at least keep the window minimized.
(Example script can be found in this question.)