Skip to main content

HI there,

 

Does anyone know of a command to remove an icon from the macOS dock? We use Google Chrome as our default browser which also works without issue if you try to sign into a Google federated managed Apple ID during Apple ID / iCloud login.

@_aDiedericks For manipulating items in the Dock I would suggest you take a look at https://github.com/kcrawford/dockutil


@_aDiedericks For manipulating items in the Dock I would suggest you take a look at https://github.com/kcrawford/dockutil


I've been digging into dockutil and found a few articles that have script templates for actioning what I'm looking for. Will give them a test and report back on what I see. 


I've found a perfect solution that I can confirm is currently working

https://github.com/bluemoosegoose/Build-a-Custom-MacOS-Dock 


There is also the Dock Items payload built into Jamf policies. It lets you remove dock items or add them to the beginning or the end of the dock. It's already built into jamf, so you don't need to worry about 3rd party scripts and applications.

To use the dock items payload, you need to set up some dock items first.
Go to Settings > Computer management > Dock items, and you can create dock items that can be Apps, Files, Or Folders. All you need is the file path for the item. 


There is also the Dock Items payload built into Jamf policies. It lets you remove dock items or add them to the beginning or the end of the dock. It's already built into jamf, so you don't need to worry about 3rd party scripts and applications.

To use the dock items payload, you need to set up some dock items first.
Go to Settings > Computer management > Dock items, and you can create dock items that can be Apps, Files, Or Folders. All you need is the file path for the item. 


Thank you, this is a way more elegant solution to customizing the dock


Reply