Python – How to correctly launch a python application in the Mac OS X dock

dockmac-osxpython

I need to install a python application (python + wxWidgets GUI) to end users computers. I need an application to be in the Dock and start like any other application – with light "started" indicator, click-is-focus etc. However OS X prevents me from dragging the python script to dock – seems it thinks that python script is not an executable :(. When I drag a python script into "documents" section of dock it just don't start when clicked – an empty terminal opens, the python launcher opens for a few seconds and then nothing happens.

Using:
Mac OS X 10.5.7

Is there any way to put a python application into the Dock?

Best Answer

You can use py2app to create MacOS apps from Python scripts.