I am aware that you can right-click on an application and choose "Add to Favorites". I am trying to add it to the favorites section without using the GUI at all. Everything needs to be done in the terminal or a script.
Anyone have any ideas?
This is not a duplicate of this question. That is for SETTING the favorites, not ADDING to the favorites. When you right click on an application and choose "Add to Favorites", that must run a script somewhere that takes an input of the application name. What I'm asking is, where is that script or how can I replicate it?