Set the position the Dock

How can I set the Position of the Dock quickly.
Any ideas?
-Milan

To set the side of the screen that the dock sits on… options: right,left,bottom,top…

do shell script "defaults write com.apple.dock orientation -string bottom;killall -HUP Dock"

There is also the ‘pinning’ setting which places the dock in different positions on the side it’s on… options: start,middle,end…

do shell script "defaults write com.apple.dock pinning -string middle;killall -HUP Dock"

You can combine the two to make one nice line, such as the following which will place the dock in the bottom left corner…

do shell script "defaults write com.apple.dock orientation -string left;defaults write com.apple.dock pinning -string end;killall -HUP Dock"

There’s no way (that I know of) to get the dock to “update” without killing it and restarting it. Only the dock application itself has the ability to update without restarting.

Have fun,
j

I already knew this one, but I hoped to fine a way without restarting the dock.
But if you say that it´s not posssible… :frowning: