Process Not Responding Test

How to test using AppleScript if process is Not Responding? Thanks

Browser: Safari 412.5
Operating System: Mac OS X (10.4)

I don’t know how to do it generically, but when I do batch processing scripts for things like Quark, I usually just send it a simple event like asking for it’s version number and then kill the app if the event times out.