Ubuntu의 경우 데스크톱 알림을 만드는 것은 쉽습니다. https://askubuntu.com/questions/187022/how-can-i-send-a-custom-desktop-notification
그것은 다음과 같습니다:
$ notify-send "Hello world!"
MacOS에서 시스템 알림을 생성하는 데 사용할 수 있는 간단한 명령을 찾고 있습니다. 이를 수행하기 위해 시작할 수 있는 Apple 스크립트가 있습니까?
답변1
예, Applescript에서 사용할 수 있습니다 display notification
. 예를 들어:
osascript -e 'display notification "Hello World!" with title "Notification Example"'
Applescript 문서알림 표시추가 세부정보가 있습니다.