Closed ghost closed 2 years ago
func Notify(title, message, appIcon string) error { ... cmd := exec.Command(osa, "-e", `display notification "`+message+`" with title "`+title+`"`)
func Alert(title, message, appIcon string) error { ... cmd := exec.Command(osa, "-e", `tell application "System Events" to display notification "`+message+`" with title "`+title+`" sound name "default"`)
the code calls the binary osascript, but it fails if title or message contains a double quotation mark
osascript
title
message
Finally.
Hm, sorry, but as far as i can see, notify is fixed by https://github.com/gen2brain/beeep/commit/d7852edf42fcad580965acb60e07a3b468409d4a, but not alert :) Am i wrong ?
the code calls the binary
osascript
, but it fails iftitle
ormessage
contains a double quotation mark