14 lines
286 B
JavaScript
14 lines
286 B
JavaScript
|
var app = Application.currentApplication()
|
||
|
app.includeStandardAdditions = true
|
||
|
app.activate()
|
||
|
|
||
|
var opts = {}
|
||
|
|
||
|
{{if .Title -}}
|
||
|
opts.withTitle = {{json .Title}}
|
||
|
{{end -}}
|
||
|
{{if .Subtitle -}}
|
||
|
opts.subtitle = {{json .Subtitle}}
|
||
|
{{end -}}
|
||
|
|
||
|
void app.displayNotification({{json .Text}}, opts)
|