← Ping sweep | Accumulator generator →

OSX popup

| tags: osx, bash

To generate a popup in OSX from a bash script:

#!/bin/bash
/usr/bin/osascript <<-EOF

    tell application "System Events"
        activate
        display dialog "Hello world"
    end tell

EOF