Preventing the Dock from Remaining Visible in Fullscreen Applications
Has anyone found a better way to do this in High Sierra?
When the Dock is set to the bottom of the screen and I use a fullscreen application, it often stays visible instead of automatically hiding.
I added the following AppleScript in the Script Editor, which doesn't use killall Dock and therefore doesn't re-open minimised applications:
tell application "System Events"
tell dock preferences
set properties to {screen edge:left}
set properties to {screen edge:bottom}
end tell
end tell
Then saved it as an application and added it to the Dock. Sorted!