Remove from Dock in Yosemite

Jason
Contributor II

Previously I've used the "Remove from Dock" action in the Dock Items payload (policy). That seemed to work for Mavericks, but in Yosemite I'm not having much luck. To test i pinned FaceTime to the dock. I ran that policy and i can see it execute and the dock relaunch, but the FaceTime dock item remains. Any suggestions?

1 REPLY 1

mm2270
Legendary Contributor III

Use dockutil?
I've never used the remove from Dock functionality, or at least I have not used it in years now. I suspect its either not functioning correctly due to a defect, or you're running into aggressive caching in the OS. Although if its the latter issue, I'm surprised it worked under Mavericks, since that OS has/had pretty aggressive caching as well.

As a test, if you run a:

defaults read com.apple.dock | grep "file-label"

under the current account, do you see a line for the FaceTime application in the output? If not, then its been removed, but the OS is likely holding onto cache and thinking its still in the plist. If so, run a killall cfprefsd command and then killall Dock and see if it disappears.