6
1
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.
step 6 of the accepted answer needs to be formatted correctly to work for f in "$@" do python "$f" done – borgified – 2016-04-23T06:53:15.930
1Joined just so I could upvote this. – ArtOfWarfare – 2013-07-24T12:50:11.450
1:-/ unfortunately it's simply not working... I have no idea why. Any step having python run a script simply has automator say the Run Shell Script failed, with no description of what went wrong. – ArtOfWarfare – 2013-07-24T13:17:11.540