Download .dmg and copy CocoaDialog.app to /Applications/
test run from bash terminal (/Applications/Utilities/Terminal.app)
$ /Applications/CocoaDialog.app/Contents/MacOS/CocoaDialog standard-inputbox --title "Your Name" --informative-text "Enter your name"
Example should show this:
Pressing ok will return:
>1
>enteredText
Pressing cancel will output:
>2
No comments:
Post a Comment