Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way on a mac to make it so when you click on a python script it runs python through terminal?

share|improve this question

migrated from Oct 1 '11 at 22:39

This question came from our site for professional and enthusiast programmers.

Yes, this is possible with multiple methods. The easiest is simply right-clicking the script, opening the Get Info window and changing Open With to Python Launcher (x.x.x).

share|improve this answer

According to the Python Documentation: 4.1.1. How to run a Python script, you can set "Python Launcher" to your default program which uses pythonw. This assumes you have Leopard or later.

share|improve this answer
But that opens a bunch of other windows – Shameer Oct 2 '11 at 3:33

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.