Watch for application launch/terminate events
This module is based primarily on code from the previous incarnation of Mjolnir by Markus Engelbrecht and Steven Degutis.
| Signature | hs.application.watcher.activated |
|---|---|
| Type | Constant |
| Description | An application has been activated (i.e. given keyboard/mouse focus) |
| Source | extensions/application/watcher.m |
| Signature | hs.application.watcher.deactivated |
|---|---|
| Type | Constant |
| Description | An application has been deactivated (i.e. lost keyboard/mouse focus) |
| Source | extensions/application/watcher.m |
| Signature | hs.application.watcher.launched |
|---|---|
| Type | Constant |
| Description | An application has been launched |
| Source | extensions/application/watcher.m |
| Signature | hs.application.watcher.launching |
|---|---|
| Type | Constant |
| Description | An application is in the process of being launched |
| Source | extensions/application/watcher.m |
| Signature | hs.application.watcher.terminated |
|---|---|
| Type | Constant |
| Description | An application has been terminated |
| Source | extensions/application/watcher.m |
| Signature | hs.application.watcher.new(fn) -> watcher |
|---|---|
| Type | Constructor |
| Description | Creates an application event watcher |
| Parameters |
|
| Returns |
|
| Notes |
|
| Source | extensions/application/watcher.m |
| Signature | hs.application.watcher:start() |
|---|---|
| Type | Method |
| Description | Starts the application watcher |
| Parameters |
|
| Returns |
|
| Source | extensions/application/watcher.m |
| Signature | hs.application.watcher:stop() |
|---|---|
| Type | Method |
| Description | Stops the application watcher |
| Parameters |
|
| Returns |
|
| Source | extensions/application/watcher.m |