De Como remover o Dock no Mac OS X Leopard :
defaults write com.apple.dock tilesize -int 1 defaults write com.apple.dock pinning -string start
Esta é uma solução alternativa:
It should be totally out of the way at that point unless you mouse all the way over in the extreme bottom left hand corner.
Os comandos acima podem ser adicionados a um serviço do Automator e, ainda, outro para ativar as coisas novamente, como:
defaults write com.apple.dock tilesize -int 20 defaults write com.apple.dock pinning -string middle
Ambos os serviços podem receber uma tecla de atalho diferente. Ou, para alternar usando um único serviço do Automator e, portanto, usando uma única tecla de atalho:
tileSize="$(defaults read com.apple.dock tilesize)" if [ "$tileSize" -ne 1 ] then # Make the Dock autohide, as small as possible, and # move it into a corner defaults write com.apple.dock autohide -boolean true defaults write com.apple.dock tilesize -int 1 defaults write com.apple.dock pinning -string start else defaults write com.apple.dock autohide -boolean false # Choose whatever size you like: defaults write com.apple.dock tilesize -int 20 # Choose your personal preference, start, middle or end: defaults write com.apple.dock pinning -string middle fi killall Dock
Veja Troca rápida de usuário / menu Apple? para obter detalhes sobre criando serviços e atribuindo um atalho de teclado a ele.
Observação:killallDocktambémredefineopainel(eprovavelmenteoExposé,masnãooSpaces).Sealguémsouberdealgumoutroefeitocolateral,porfavor,comente!Euduvidoquealguémpossaconseguiromesmopor scripting System Preferences usando o AppleScript , já que isso não parece suporte tamanhos muito pequenos, nem suporta mover o Dock em um canto:
tell application "System Events"
tell dock preferences
-- no matter how small the number is: won't help
set dock size to 0.0000000001
-- screen edge: left, bottom, right
set screen edge to bottom
set autohide to true
end tell
end tell
Curiosamente, quando não usa killall Dock , mas ao invés disso, o script Bash é seguido por algum AppleScript para alterar screen edge , meu OS X frequentemente aplica o novo valor para tilesize on the fly. Mas é um pouco inconsistente para o meu gosto.
Deixando de lado algumas outras configurações que podem ocultar o Dock ainda melhor:
defaults write com.apple.dock launchanim -bool false defaults write com.apple.dock magnification -bool false defaults write com.apple.dock mineffect -string scale defaults write com.apple.dock orientation -string bottom
