Permalink
Switch branches/tags
Nothing to show
Find file Copy path
2b853ca Oct 23, 2014
1 contributor

Users who have contributed to this file

executable file 18 lines (15 sloc) 358 Bytes
#!/usr/bin/env bash
# Shows GUI prompt.
#
# Usage:
# dlg-prompt <text> [default answer] [title]
#
# Author: Artem Sapegin, sapegin.me
# License: MIT
# https://github.com/sapegin/dotfiles
#
osascript <<EOT
tell app "System Events"
text returned of (display dialog "$1" default answer "$2" buttons {"OK"} default button 1 with title "$3")
end tell
EOT