frondoc picture
What is Frontier?
Download
News & Updates
Mailing Lists
Sample Scripts
Site Outline
Search
Guestbook
BBS
User's Guide
1 2 3 4 5 6
7 8 9 10 11
Apple File Edit
Main Open Suites
Web Window
Menubar Outline
Script Table WP

Frontier website on www.scripting.com

IdleTime

A system extension that connects with Frontier's clock.idleTime verb.

IdleTime is a system extension provided for use in conjunction with Frontier. Its primary purpose is to install a system filter which keeps track of user activity so that scripts can perform intelligent testing on this activity.

To install the IdleTime extension, open the Misc Stuff folder, open Copy to System Folder, and drag the IdleTime icon into your System Folder and restart your Macintosh.

This version is a very basic rewrite of the original extension written by Doug Baron, primarily to work around some crashing problems people were seeing on newer machines and prepare the extension for Copland.

To call the idleTime INIT, we've provided a glue script called clock.idleTime. The script is pre-installed in Frontier.root. It returns the number of seconds of inactivity on the system. For example, you could install an agent script that starts a backup after an hour of inactivity. To test for that, you'd check to see if clock.idleTime () is greater than 3600.

Any activity resets the idle value to zero. Things that count are keystrokes, disk insertions, mouse movement or mouse clicks.

A sample script is at samples.basicStuff.idleWatcher. There's a DocServer page for clock.idleTime.

Please report problems to ely@netcom.com or on the Frontier-talk list.


© Copyright 1996-97 UserLand Software. This page was last built on Wed, Jan 22, 1997 at 3:04:46 PM with Frontier. Thanks for checking it out! Dave