mac 弹窗

 -> [email protected] ~/tmp git:(master) ✗ ☺  # cat alert.sh
#! /bin/sh

message="[email protected]"
osascript<<EOF
tell application "Finder"
    activate
    display Dialog "$message"
end tell
EOF
 -> [email protected] ~/tmp git:(master) ✗ ☺  # ./alert.sh hello world!
button returned:好