Our great sponsors
-
outset
Discontinued Automatically process packages, profiles, and scripts during boot, login, or on demand.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
There is a package called dockutil that allows you to send a command to update the user's dock. You can specify location relative to other icons, and lots of command line options to string together. The trick is getting it to run at the right time.
Some of my machines are shared (like a lab environment) and I use outset to run a script on every login that resets the dock to the expected state. There are conditionals in there that check to see if the app is installed before trying to place the icon on the dock, so you don't end up with the ? icon.