How to view path of Dock Icon

I moved a folder and now the dock item cannot find the application.

How can I view the path of the pointer in a Dock item?


Solution 1:

Open ~/Library/Preferences/com.apple.dock.plist and look in the 'persistent-apps' array:

    

Solution 2:

Simply hold the Command key when you click the app in the dock and it will open the location of the app rather than opening the application as normal. Once you have the app open in finder you can right click the name of the folder at the very top of the finder window that opened and it will show the path to the app.

Alternatively you could right click the app in the finder window and click "Get Info" to show a panel like this with the path to the app:

enter image description here