[Pythonmac-SIG] appscript Python script preventing logout
janssen at parc.com
Thu Dec 18 17:04:25 CET 2008
has <hengist.podd at virgin.net> wrote:
> copy Python.app's executable (.../Python.app/
> Contents/MacOS/Python) to /usr/local/bin/pythonb and use that to run
> your scripts.
Ah! That sounds easy. I'll try it.
> aemreceive's sfba module lets you run an event loop, which you need to
> handle any sort of incoming events, and installs a default 'quit'
> handler for you. It doesn't provide support for Carbon timers or
> background threads, however, so wouldn't be any use to you here. A
> better solution would be to build use Cocoa to provide your script
> with an event loop, as PyObjC isn't subject to the same restrictions
> as sfba.
I was thinking the same thing. Thanks for the help!
More information about the Pythonmac-SIG