DEV Community

Hans Yoghurt
Hans Yoghurt

Posted on

Answer: hide menu bar and dock globally with applescript

Easiest way to do it simultaniously - (WORKS ON MACOS MONTEREY, and i assume all other verions as well but i havent tried it)

tell application "System Events"
    tell dock preferences to set autohide to not autohide
    tell dock preferences to set autohide menu bar to not autohide menu bar

Top comments (0)