tomas / dialog

Show native alert dialogs on Windows, OSX and Linux with Node.js.
57 stars 16 forks source link

Added custom dialog with support for text input and custom buttons/icon #11

Open preethamvishy opened 6 years ago

preethamvishy commented 6 years ago

Optional text input box can be added to dialog boxes in Darwin (MacOS) to capture additional user response. Support to add custom icon to dialog boxes in Darwin. Support to add custom buttons to dialog boxes in Darwin.

screen shot 2018-02-10 at 12 54 19 am
chrisspiegl commented 3 years ago

I tested this and it worked. The syntax is a bit strange and maybe the part with the '{"No", "Maybe", "OK"}' could be done just using an array and then constructing the apple script string on the fly. Very useful for an Alfred Workflow Implementation.

This would need some readme additions but I think that would be awesome.