• 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
Re: Getting Status of a not responding application
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Getting Status of a not responding application


  • Subject: Re: Getting Status of a not responding application
  • From: Emmanuel <email@hidden>
  • Date: Fri, 11 Feb 2005 10:26:35 +0100

At 2:11 PM +0530 2/11/05, Kumar Shailove wrote:

Using AppleScript is there any way to determine whether an application is not responding (is in hang state).

I don't know an "official" fashion, but I have used the following trick to know whether Finder is busy:


try
	with timeout of 1 second
		tell application "Finder" to get 1+1
	end
	-- responding
on error
	-- not responding
end

IIRC, timeout does not support fractional times, but I'm not sure.

Emmanuel
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Applescript-users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


References: 
 >Getting Status of a not responding application (From: "Kumar Shailove" <email@hidden>)

  • Prev by Date: Re: Hotkeys to Snapz Pro or Grab
  • Next by Date: Offset in list
  • Previous by thread: Getting Status of a not responding application
  • Next by thread: Offset in list
  • Index(es):
    • Date
    • Thread