correspond.channels.macos#
macOS Notification Centre: a banner on this Mac (send only).
Reference: macos: (this machine; it takes no id). A send uses terminal-notifier when
it is installed, because it keeps bodies with quotes intact, and osascript otherwise.
Either way the text travels as program arguments, never inside a script, so nothing in a
message can be run.
>>> MacOS().parse_ref("").encoded
'macos:'
Classes
|
Notification Centre on the Mac correspond runs on. |
- class correspond.channels.macos.MacOS(*, run=<function run>)[source]#
Bases:
objectNotification Centre on the Mac correspond runs on.
- audience(ref, *, draft=None)[source]#
Only the operator: a banner on this Mac, which can be cleared.
- Return type:
- property capabilities: Capabilities#
Send only.