title: How to detect if user is away in OS X?
body: <p>I want to start a script when user goes away or returns back to computer. Is there any built-in method in AppleScript to check user's state? If not what else can I use in OS X?</p>