We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
title
message
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
The text was updated successfully, but these errors were encountered:
Sorry, something went wrong.
48b41e8
Merge pull request #47 from r10r/fix-macos-notify-quoting
d7852ed
fix quoting in macOS notify. fixes #37
Finally.
Hm, sorry, but as far as i can see, notify is fixed by d7852ed, but not alert :) Am i wrong ?
No branches or pull requests
the code calls the binary
osascript
, but it fails iftitle
ormessage
contains a double quotation markThe text was updated successfully, but these errors were encountered: