用命令触发系统通知

例子:

message='hello world!'
title='Greeting'
subtitle='More text'
sound='Submarine'
osascript -e "display notification \"$message\" with title \"$title\" subtitle \"$subtitle\" sound name \"$sound\""

参考

Mac 声音文件在 /System/Library/Sounds/ 目录。