I have an applet which includes a “icns” file in the “Resources” folder of its bundle. That file contains images of a logo for the applet. I use the logo in a “display dialog” statement:
set custom_icon_file to (path to resource "applet.icns")
display dialog "Alert text" with title "Title" buttons {"OK"} with icon custom_icon_file
This code seems to work. But, I’ve realised that I should be using “with icon file”. Yet, the “StandardAdditions” library says that “with icon” can be followed by “text or integer”. Have I accidentally done that ?
Interestingly, the 2013 AppleScript Language Guide only mentions “with icon” followed by any of a resourceSpecifier, iconTypeSpecifier or fileSpecifier. It does not mention “with icon file”
So, I’m confused. Can anyone help ?