tomas / dialog

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

Display custom Icon in OSX High Sierra 10.13.3 #12

Open t-mullen opened 6 years ago

t-mullen commented 6 years ago

The default AppleScript icon is shown instead of anything informative. Is there any way to show something relevant to my application?

var dialog = require('dialog')
dialog.info('Hello there')

image

tomas commented 6 years ago

Yes, we could support passing a custom icon path (or using one of the built-ins, e.g with icon 0 or with icon caution). Happy to merge a patch if you're up to it!