Re: Detect if specific Python.app instance is already running

2015-06-12 Thread Ned Deily
In article <6651a781-abe1-4f25-b1f3-1f849776d...@googlegroups.com>, Andrei wrote: > On Monday, June 8, 2015 at 1:08:07 AM UTC+2, Ned Deily wrote: > > In article <11e093d5-b78e-4ac6-9a7f-649cb2c2c...@googlegroups.com>, > > Andrei wrote: > > > Alright, I have had some development in > > > http:/

Re: Detect if specific Python.app instance is already running

2015-06-08 Thread Laura Creighton
I needed to do something like this once. What I needed was a way to send a process a signal, and have it then spit out a huge amount of stats about how long it had been running, how many page faults it had suffered, and, goodness, I forget all the information that was needed. Lots. So I just wra

Re: Detect if specific Python.app instance is already running

2015-06-08 Thread Andrei
On Monday, June 8, 2015 at 1:08:07 AM UTC+2, Ned Deily wrote: > In article <11e093d5-b78e-4ac6-9a7f-649cb2c2c...@googlegroups.com>, > Andrei wrote: > > Alright, I have had some development in > > http://stackoverflow.com/questions/30694560/detect-if-specific-python-app-inst > > ance-is-already-ru

Re: Detect if specific Python.app instance is already running

2015-06-07 Thread Ned Deily
In article <11e093d5-b78e-4ac6-9a7f-649cb2c2c...@googlegroups.com>, Andrei wrote: > Alright, I have had some development in > http://stackoverflow.com/questions/30694560/detect-if-specific-python-app-inst > ance-is-already-running and can prevent running multiple instances of the > same app/scr

Re: Detect if specific Python.app instance is already running

2015-06-07 Thread Andrei
Alright, I have had some development in http://stackoverflow.com/questions/30694560/detect-if-specific-python-app-instance-is-already-running and can prevent running multiple instances of the same app/script (by lockf), but I still need to identify which Python.app instance is running certain s

Detect if specific Python.app instance is already running

2015-06-07 Thread Andrei
Hello, I am experimenting with OS X apps written in Python and need to detect if there is already an instance of Python.app running with certain script. My script modifies CFBundleName on-the-fly from "Python" to "MyApp" to change the app title in the menubar. If I start another instance and ch