notification Action
An action to post notifications to macOS Notification Centre.
{
"notification": {
"post": {
"title": "Fruits",
"text": "Banana and Orange"
}
}
}
NoteOn external Alfred UIs, notifications only appear if the window is not frontmost. They are always added to the Notifcation Centre regardless.
Properties
- post
- OBJECT | ARRAY
Examples
Show a notification
{
"type": "button",
"text": "Post a notification",
"events": [
{
"triggers": "actioned",
"action": {
"type": "json",
"src": {
"notification": {
"post": {
"title": "I am the notification title",
"text": "I am the notification text"
}
}
}
}
}
]
}