Max OS X. When I double-click on a python script it opens in the default editor. How might I make it so that when I double-click, or choose the script from Applications, it executes from the python interpreter? From the "open with" option it does not appear that I can choose /usr/bin/python.
Macos – Run python script from Finder rather than edit
findermacospythonscript
Best Answer
Change the script to
for f in "$@" do python "$f" done
Save it (possibly in the application folder, but can be anywhere) as Python.app
Now if you want .py files to always launch with python: