Is there a way on a mac to make it so when you click on a python script it runs python filename.py through terminal?
MacOS – Run through terminal PYTHON
macospythonterminal
Related Question
- MacOS – How to minimise the terminal automatically when it is running a shell script
- Run Python Script on any Mac computer
- Run Python Script on computer boot
- MacOS – Python Launcher shows nothing on the terminal
- MacOS – How to make “python” command in terminal open python3 instead of python2.7 which comes with mac
- Can’t run python script from Automator on Catalina “Operation not permitted”
- Use Automator to run Python script when files added to folder
Best Answer
Yes, this is possible with multiple methods. The easiest is simply right-clicking the script, opening the
Get Info
window and changingOpen With
toPython Launcher (x.x.x)
.