what icons can i place on a dialog box

I know i can place icon 0, icon 1, icon 2 and icon note. Which other icons can i place on the dialog window.

Cheers.

Icon 1 is icon note (0 = stop; 1 = note; 2 = warning). Aside from that, unless you get creative and add an icon resource someplace, that’s all you’ve got with vanilla AS.

Jon

cheers

Hey daveyand, you can take the less traveled route and get creative…

display dialog "\\|//       Do you have any Ascii Art Icons?" & return & " © ©        I call this one "Witch Doctor"" & return & "   A          Error #666 - The Heebie Jeebies     " & return & " (°º°)"

or you can go with the standard AppleScript set of generic icons via

--display dialog "Generic Icons by name..." with icon stop -- stop, note, caution

--display dialog "Generic Icons by number..." with icon 0 -- 0,1,2

it’s your call, & it’s AppleScript have fun…

beers

You can also include icons (likely limited to a certain size) that belong to applications that are being scripted if you know the icon’s number. For instance, the following uses an icon from Eudora. Apologies for using an example that few can test but it’s all that I have handy at the moment. I’ve added a screenshot below.

tell application "Eudora"
	display dialog "Look at that!" with icon 1001
end tell

Note: Eudora is a Carbon app and I don’t know if this will work on Cocoa apps.

– Rob

Hi :slight_smile:

You can use the AppleScript icon (number 1128), but only with applet/droplet script :

on run
  display dialog "Hola" with icon 1128
end run

:wink: