zenity/internal/zenutil/osascripts/notify.gojs

13 lines
271 B
Text
Raw Normal View History

2020-01-26 11:04:49 -05:00
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)