macOS 傳送自訂義系統彈窗
(本教學需要使用 Terminal(終端機),不熟悉操作可能會踩坑)
在 Terminal 使用隨便一個指令:
osascript -e 'tell application "System Events" to display dialog "Write something here..." buttons {"Button 1", "Button 2"} with icon caution'
osascript -e 'tell application "System Events" to display dialog "Write something here..." buttons {"Button 1", "Button 2"} with icon stop'
資料來源:
- 找不到原文 (Stack Overflow) 連結