Mac 调用 osascript 不显示通知
我在终端或者ide中调用osascript我的电脑没有弹出通知
我在终端中尝试了:
/usr/bin/osascript -e 'display notification "Hello" with title "Test"'
/usr/bin/osascript -e 'display notification "With sound" with title "Test" sound name "default"'
/usr/bin/osascript -e 'display notification "Subtitle" with title "Test" subtitle "From osascript"'
这几个命令 能够在
log stream --predicate 'process == "osascript" OR senderImagePath CONTAINS "osascript" OR subsystem == "com.apple.usernotifications"' --info
这个log中看到osa的相关日志 但是我的桌面和通知中心没有显示弹窗通知
我没有开勿扰模式
同时我在我的设置里找不到终端或者脚本编辑器的通知选项
[标题经过版主编辑]
原标题:调用 osascript 不显示通知
MacBook Pro 16″, macOS 15.5