Overview
Variables
Seconds between idle-application checks (default: 600).
Methods
Set the list of applications to watch and their idle timeouts.
Parameters
appConfigs- A list of tables, each with aname(app name or bundle ID) andidleTime(seconds) field. An optionalexcludeFromIdleClose(boolean) field can be set totrueto never force-quit that app even when it has zero windows, e.g. for apps that may be doing background work (uploading, syncing, recording) with no open windows.
Returns
- The AutoCloseApps object, for method chaining
Called automatically by hs.loadSpoon(). Logs the loaded version.
Returns
- The AutoCloseApps object, for method chaining
Start monitoring for idle applications.
Returns
- The AutoCloseApps object, for method chaining
Stop monitoring and cancel all timers.