macOS 弹出一个消息提醒

转自:https://www.jianshu.com/p/98041ee1e805

  1. 使用 Apple Script 弹出一个提醒:

    display notification "提醒内容" with title "提醒标题"
    
  2. 使用命令行:

    /usr/bin/osascript -e "display notification \" 提醒内容 \" with title \"提醒标题\""
    

你可能感兴趣的:(macOS 弹出一个消息提醒)