• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Detect when an app is crashed
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Prev by Date: Re: Lists to XML ?
  • Next by Date: Error saving mail attachment
  • Previous by thread: Re: Detect when an app is crashed
  • Next by thread: Safari Moving Focus to the URL List in Bookmarks and History Windows after a Search
  • Index(es):
    • Date
    • Thread