当最小测试通过或失败时,如何获得“ Macos通知中心”警报?
我在macOS Catalina上。
在Mac上,粗略但显而易见的方法是通过AppleScript:
s = 'display notification \"Your toast is ready.\" with title \"Done\"' `osascript -e "#{s}"`