Idle Script

Hello All,

I am very new to AppleScript and hopefully I can get some help in writing an idle Script to do something at a certain of time.

For example:

Application A
do something if idle for 30 sec

Application B
do something if idle for 60 sec

Network Shared C
disconnect if idle for 15 minutes

Network Shared D
disconnect if idle for 20 minutes

I did a search on how to get the “idle time” for an application while the user is actually doing something with another application on the same machine. It seem that it is impossible to do this in AppleScript. Maybe I missed out something, please help.

Thanks & Regards.