5

How would I get a python script to run everytime the computer boots?

a sandwhich
  • 4,352
  • 12
  • 41
  • 62

2 Answers2

3

How to run a shell script on startup (OSX)

And in that script just call your program

python path/to/yourScript.py

EDIT: Since 2010 the above link has gone sour. But also since 2010 have some answers popped up the describe similar methods, eg.

Running script upon login mac

How to get shell scripts to run on startup - Yosemite

Community
  • 1
  • 1
William
  • 1,007
  • 7
  • 11
1

You could create a login hook (be careful, it runs as root)

Hortinstein
  • 2,667
  • 1
  • 22
  • 22