Drag application from Downloads folder to Applications folder in the Dock overwriting an existing application

dock

I just downloaded an update to an application as a zip file, so I extracted the file in the Downloads folder.

I now have the old version of Foobar.app located in the Applications folder and the new version Foobar.app located in the Downloads folder.

I would then like to replace the old version with the new version by dragging the new version from the Downloads folder to the Applications folder via the Dock.

This doesn't work if the app has the same filename, so I have to either first delete the old version using Finder or just move the new app to the Applications folder using Finder.

Edit: This isn't only a problem with Applications/Downloads folder, but any two folders in the Dock.
Also it doesn't matter if it is an application, a folder or a file.

Is it possible to make it possible to replace an application using Drag'n'Drop in the Dock?

Here is a recording of it:
enter image description here

Best Answer

It appears as though the folders on the doc are actually just an alias. If you create two folders, say in this case TEST1 and TEST2 on your desktop (could also be an alternate location). Then drag said folders to dock. Upon doing so delete either folder from the desktop. When you then click on the folders in the dock you will see a question mark superimposed on the deleted folder. This leads me to believe that these are not true folders but an alias for said folders and behave as such when they are in the dock. If you move a file between your two test folders on the desktop you will get the overwrite prompt as expected.

enter image description here