Skip to main content
Solved

Command to remove icon on doc

  • November 19, 2022
  • 5 replies
  • 28 views

_aDiedericks
Forum|alt.badge.img+8

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.

Best answer by _aDiedericks

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

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

5 replies

sdagley
Forum|alt.badge.img+25
  • Jamf Heroes
  • November 20, 2022

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


_aDiedericks
Forum|alt.badge.img+8
  • Author
  • Contributor
  • November 20, 2022

@_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. 


_aDiedericks
Forum|alt.badge.img+8
  • Author
  • Contributor
  • Answer
  • November 22, 2022

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

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


mickgrant
Forum|alt.badge.img+12
  • Contributor
  • November 22, 2022

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. 


_aDiedericks
Forum|alt.badge.img+8
  • Author
  • Contributor
  • November 23, 2022

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