我希望在通知中显示shell脚本运行结果 (exiftool -k -P -overwrite_original_in_place -ImageDescription= "$1"/*.ARW
),我尝试使用$1
作为主题文本,但它显示的是$1而不是脚本输出。
我希望在通知中显示shell脚本运行结果 (exiftool -k -P -overwrite_original_in_place -ImageDescription= "$1"/*.ARW
),我尝试使用$1
作为主题文本,但它显示的是$1而不是脚本输出。
在10.9或更高版本中,您可以使用display notification
AppleScript命令:
osascript -e 'on run {t}' -e 'display notification "" with title "t"' -e end title
terminal-notifier -title title -message ''
可以使用sudo gem install terminal-notifier
安装terminal-notifier。