zenity/internal/zenutil/osascripts/notify.js
2020-01-26 16:04:49 +00:00

14 lines
No EOL
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)