I found this article but it handles the GUI solution.
I would like to automate the setup of a new machine, and do that I've created Dropbox shares of a number of my common configurations. (I could use a github repo, too) Other sites have discussed automating pref configs.
I'd like a bash / terminal command to create an alias in the dock. I presume that the dock is a folder of aliases located somewhere in
~/Library but I can't find it.
Is there any AppleScript solution?
edit: it seems that there is a file,
~/Library/Preferences/com.apple.dock.plist that contains the references.
A Japanese engineer discusses an way to do this C. 2009 (which no longer works).
Another script was designed to add folders to the 'others' area of the Dock – which is alos dated. The latter, however, along with the new format for the Dock
plist, and some dict manipulation tips, gives more clues to creating a modern script.