Dockutil - placement of icon

jameson
Contributor II

I am trying to do a simple task by adding a shortcut by using dockutil
I have the following script

#!/bin/sh
sudo dockutil --add /Applications/random.APP --position beginning

But everytime dockutil set the shortcut at the end of the right side in the doc close to where the trashcan is - also no matter what other positions I try. Is there any trick to get this placed in the middle alongside the existing icons ?

1 REPLY 1

ryan_ball
Valued Contributor

This works fine for me.

dockutil --add "/Applications/Google Chrome.app/" --position beginning