tell application "System Preferences"
set the current pane to pane id "com.apple.preference.general"
tell application "System Events" to tell process "System Preferences"
click checkbox "Menüleiste automatisch ein- und ausblenden" of window 1
end tell
end tell
Es scheint gut zu funktionieren.
Was man doch alles mit Skripten machen kann.