I have an app in /usr/local/bin directory and can not drag it onto the dock and have to open Terminal everytime I want to run this program.
Is it possible to run a macported/homebrewed application from the Dock?
You should be able to do this using AppleScript, saving the script you create as an application, then dragging it to the dock.
For example, if you start the Apple Script Editor (
Either script should work, but the first explicitly opens the Terminal - it just depends on the application you want to run and whether it sticks around.
Then save this script as an application (use the dropdown in the save dialog to change the "File Format" to "Application").
You should then be able to drag the .app file you created to the Dock and run it.