#
cp.ui.notifier
Supports long-lived 'AX' notifiers. Configure the application to watch, the
function that provides the axuielement
and then register for the type of
notification to watch, along with a function that will get triggered.
For example:
local notifier = require("cp.ui.notifier")
local function finder() ... end -- returns the axuielement
local o = notifier.new("com.apple.FinalCut", finder)
o:watchFor("AXValueChanged", function(notifier, element, notification, details) ... end)
o:start()
#
API Overview
Functions - API calls offered directly by the extension
notifiersForBundleID
Constructors - API calls which return an object, typically one that offers API methods
new
Methods - API calls which can only be made on an object returned by a constructor
app bundleID currentElement debugging pid reset start update watchAll watchFor