zenity/internal/zenutil/osascripts/notify.gojs
2021-01-05 15:20:42 +00:00

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