a sandwhich
a sandwhich

Reputation: 4448

Get python script to run on boot up in mac

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

Upvotes: 5

Views: 5761

Answers (2)

William
William

Reputation: 1007

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

Upvotes: 3

Hortinstein
Hortinstein

Reputation: 2697

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

Upvotes: 1

Related Questions