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