zenity/internal/zenutil/osascripts/notify.js

14 lines
286 B
JavaScript
Raw Normal View History

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