5

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

2 Answers 2

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

Sign up to request clarification or add additional context in comments.

1 Comment

fyi, the link is broken
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.