Is there a way to keep the application Dock closed. Every time I do:
killall dock
It closes for a bit then automatically reopens.
I want to be able to make an AppleScript program that keeps it closed. I remember I had to repeat killall dock
again and again in a loop to keep it closed, but I find that stupid as the computer could lag which allowed dock to open for a split second.
I also want to hide/close the top bar, thus hiding the apple logo on the top left, but I could not find a way to do this. I could only hide the mini icons on the top right.
My essential task is to close finder, dock, the top bar and open a specific application of my choice, like a guest account, except that you can't turn off the computer. Can someone guide me to make such program? Specifically how to turn off the parts as mentioned (except for finder which is simply just killall Finder
)?
Preferably, I want to be able to do this using Terminal or Applescript.