var Finder = Application ( "Finder" ) ; var win = Finder . finderWindows ; var flag = win [ 0 ] . statusbarVisible ( ) ; Finder . includeStandardAdditions = true ; Finder . displayAlert ( flag . toString ( ) ) ;