Programmatically add an alias to the Dock in OS X
Question
I know it is not recommended, but is it possible? The only references I can find relate to updating com.apple.preferences.plist but those changes will not take effect until the next time the Desktop is restarted
Solution
Just restart the Dock after having changed its contents:
killall -HUP Dock
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow