I have a file in my current directory Icon.png
.
How do I make this the icon for an applescript dialog?
I have tried
$ osascript -e 'display dialog "Hey" with icon file "./Icon.png"'
0:54: execution error: File file ./Icon.png wasn’t found. (-43)
So how can I get a local image and use it as the icon in a dialog?
I am happy to convert the image to a .icns
if necessary.
Worked for me. I had to save it in its own file, and I replaced the
{0}
with the message that needed to be in the dialog at runtime.