You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fn - A function that will be called when application events happen. It should accept three parameters:
A string containing the name of the application
An event type (see the constants defined above)
An hs.application object representing the application, or nil if the application couldn't be found
Returns
An hs.application.watcher object
Notes
If the function is called with an event type of hs.application.watcher.terminated then the application name parameter will be nil and the hs.application parameter, will only be useful for getting the UNIX process ID (i.e. the PID) of the application