Re: test if another app has hung

2008-04-01 Thread has
Martin Redington wrote: There were some AppleScript based approaches, but they all seemed to involve activating the app ... Shouldn't do, as long as you check to see if the application is running first. That said, you may not want to use AppleScript itself as it has issues running in back

Re: test if another app has hung

2008-04-01 Thread John Stiles
I have a vague recollection that the mechanism used by Activity Monitor and friends is not public API, unfortunately. Martin Redington wrote: I went to check the referenced thread, as this is something I wanted to do occasionally, when I noticed that I was the OP for it. The discussion was

Re: test if another app has hung

2008-04-01 Thread Martin Redington
I went to check the referenced thread, as this is something I wanted to do occasionally, when I noticed that I was the OP for it. The discussion was exhaustive, and veered OT at the end, but I'm not sure that I ever discerned how one would do this efficiently. This was probably the most i

Re: test if another app has hung

2008-04-01 Thread Ben Dougall
On 1 Apr, 2008, at 11:49 am, Ron Fleckner wrote: On 01/04/2008, at 9:28 PM, Ben Dougall wrote: Hello, What's the best way to test if another app has likely hung or not? Programmatically of course. I want to be able to kill an often hanging app and restart it -- when it's hung that is. (10.

Re: test if another app has hung

2008-04-01 Thread Ron Fleckner
On 01/04/2008, at 9:28 PM, Ben Dougall wrote: Hello, What's the best way to test if another app has likely hung or not? Programmatically of course. I want to be able to kill an often hanging app and restart it -- when it's hung that is. (10.3.9+) Thanks, Ben. Hi Ben, This question was

Re: test if another app has hung

2008-04-01 Thread Jean-Daniel Dupas
The Window Server considere that an App hangs when it does not process High Level events fast enought. What do you mean by hang ? Is it a daemon that process background request but stop to responds? Is it a graphical application that present a Spinning Wheel ? Is it a third party app that yo