Is there any way to keep my Python script (with an endless \'while\' loop) running in the background on OS X? Also, for the same purpose, is there any way to have \"autorun\
See this question for ways to daemonizing python scripts on Unix like systems: Python Daemon Packaging Best Practices
Of course you can always run the script in the background as mentioned by kindall if that is all you need.