Toggle 'Automatically hide and show the menu bar' in System Preferences

Hi all :slight_smile:

I would like to toggle the 'Automatically hide and show the menu bar' setting in System Preferences with the F14 function key on my Magic Keyboard with Numeric Keypad. My goal is to hide the menu bar completely while sharing my desktop Skype Business meetings.

Until now I've tried searching Google and this board but had no luck in finding an answer...

Maybe someone could help me to achieve this task :+1:

Thanks and best regards


I did this! Here's the AppleScript I use. It acts like a toggle every time its triggered.

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

Cool, thanks!

I'll try it :slight_smile: