There are many ways to add icons to dialog in AppleScript, but I never found a way to easily add a “custom” icon. You can use the command “with icon file” in your script :
display dialog "My custom icon " buttons {"Cancel", "Continue"} default button "Continue" with icon file "Path:to:my.icon.icns"
Very cool; thanks for posting this!
Excelent!!… thanks!!… 😉
This doesn’t work from osascript in the command shell. You can only use this syntax in the AppleScript editor. Haven’t found the osascript syntax yet.
I’m not sure what you’re talking about but I’m using this method without problem with EOT mode in bash script.