4
u/nine-st Jun 24 '20
Thank you for sharing these images. I didn't want to upgrade to a beta version of Mac OS because I use my machine for work.
I've done quite a bit of testing and trial and error with AppleScript, and found out that you can put icons on dialogs. There are some predefined icons:
display dialog "Caution Icon" with icon caution
display dialog "Application Icon" with icon note
display dialog "Stop Icon" with icon stopYou can also do something like
display dialog "Custom Icon" with icon "path:to:icon"About Alerts, I haven't found a way to customize the icon other than package the AppleScript as an app. Same issue with Notifications.
The reason I've been doing so much research for this is because I'm trying to make a Python packages that allows you to create custom dialogs and alerts to input text which you can find here: https://github.com/ninest/notipy_osx
I've also included Notifications with custom icons, but they do not work on all Macs. That's why I'm falling back to AppleScript Notifications, but they are not customizable.
I really wish AppleScript gets more love in future releases. Some changes I would like are custom icons for alerts/notifications and notification buttons and callbacks





2
u/DuePresentation3 Jun 24 '20
Thanks for sharing! Is the alert new? I've never seen it before
Another thing, are you able to change its icon? I believe you can include the "with icon" to do it
And have notifications changed? I just really wish we can set notification call backs