Detect when an app is crashed
Detect when an app is crashed
- Subject: Detect when an app is crashed
- From: Ed Stockly <email@hidden>
- Date: Sun, 26 Mar 2017 08:03:32 -0700
Thanks, Chris, but top returns “sleeping” when apps are either inactive or hung (application not responding).
With this script the apps are always “sleeping.”
I’m going to experiment a little. If I first try to send an activate, to a hung app, the script itself hangs. (Although SD doesn’t) The idea was that if an app has just responded to an activate call it shouldn’t be sleeping.
I’ll also look through the rest of the “top” info and see if there’s another way to tell if an app is hung.
>
> On Mar 24, 2017, at 13:44, Stockly, Ed <email@hidden <mailto:email@hidden>> wrote:
>> I have a need for an AppleScript dead-man's switch.
>> ...
>> It's detecting when an app is frozen that I don't know about.
>>
>> Is this possible? The thread on detecting sleep state made me think there might be a solution (I asked the question years ago)
>
>
> Hey Ed,
>
> I think you can use `top` in log mode and find apps which hung up.
>
> top -l1 -ncols 13
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden