kat*_*oox 52

有可能:

osascript -e 'display notification "Notification text" with title "Title"'
Run Code Online (Sandbox Code Playgroud)

要获得更多自定义,请查看答案.

  • @MohammadGanji 这可能是 shell 引用问题。尝试使用 `osascript -e "display notification \"${1}\" with title \"${2}\""` 代替。 (3认同)