var sys = Application ( "System Events" ) ; var dock = sys . dockPreferences ( ) ; var flag = dock . autohide ( ) ; var app = Application . currentApplication ( ) ; app . includeStandardAdditions = true ; app . displayDialog ( flag . toString ( ) ) ;