Greetings.
Trying to manage dock items with Mavericks and Dockutil 2.0.0 is "doing my head in".
Is anyone out there successfully achieving this?
Here's a rundown;
Dock management working perfectly in 10.8.x with Dockutil 1.1.2. I can add/remove/move dock items at login with a script until my heart is content - absolutely perfect functionality.
Totally inconsistent results using Dockutil 2.0.0 on Mavericks. An example of the commands I'm using in my script:
/usr/local/bin/dockutil --remove all "/home/$3";
/usr/local/bin/dockutil --add '/Applications/iMovie.app' --section apps "/home/$3";
/usr/local/bin/dockutil --add '/Applications/GameSalad.app' --section apps "/home/$3";
/usr/local/bin/dockutil --add '/Applications/Self Service.app' --section apps "/home/$3";
/usr/local/bin/dockutil --add /Applications --view grid --display folder --section others "/home/$3";
/usr/local/bin/dockutil --add /home/$3/Downloads --view grid --display folder --section others "/home/$3";
/usr/local/bin/dockutil --add /home/$3/Documents --view grid --display folder --section others "/home/$3";
/usr/local/bin/dockutil --add /Volumes/shared --view grid --display folder --section others "/home/$3";
What I'm seeing is totally unpredictable results. One login will add, say, Self Service and the Downloads folder. Then I'll log out and log back in and the iMovie and Applications folders are there, but nothing else.
If I publish the same script in self service and run it once I'm logged in, I get a new dock icon each time I run it, and not necessarily in the order that I want. Eventually all dock icons are present.
I have read extensively on the new cached preferences model, and how it works etc. I'm monitoring the com.apple.dock.plist file and what's being written to that file is consistent with the above findings.
Just wondering if I'm doing something wrong, or if there might be a bug in 10.9.x(3?) and Dockutil 2.0.0
Would love to hear what others are doing in this regard and I'm open to other ideas. I'm happy to forego control of the dock, but the last 4 items I'm adding to the "others" section are deal breakers - I need them on there.
Cheers!
Gav
