All you should probably do is highlight the app or file in Finder, then tap Ctrl+Shift+Command+T.
This will add whatever you’ve highlighted to the dock.
It’s not something you’ll use everyday, but it does adding items a lot quicker.
Instantly Add Item to the Mac Dock with a Keyboard Shortcut| OS X Daily