mac 弹窗

Posted on Posted in mac
文章目录[隐藏]

mac 弹窗

 -> lhh@mac ~/tmp git:(master) ✗ ☺  # cat alert.sh
#! /bin/sh

message="$@"
osascript<<EOF
tell application "Finder"
    activate
    display Dialog "$message"
end tell
EOF
 -> lhh@mac ~/tmp git:(master) ✗ ☺  # ./alert.sh hello world!
button returned:好
» 转载请注明来源:呢喃 » mac 弹窗