I need help as I’ve searched the boards and I’ve come to think that what I want to do is not possible in Applescript - I have a little app that opens to set some prefs - I would like to display a small logo in the prefs box which is a display dialog window - I want to call the picture either from the apps folder on the local hard drive - any help would really be appreciated even if it’s “you can’t do that!”
Devin Teske describes how to enhancing your AppleScripts using ResEdit to add icons to dialog boxes :
1.Using ResEdit, open the AppleScript program you made.
2.Create a new ‘cicn’ resource.
3.Draw or paste a new color or B&W icon, and a mask for it.
4.Now choose the new icon resource and press Command-I.
5.Type a four or five digit number in the ‘ID’ box.
Remeber the number. Whenever you want to use that icon, use that number. The icon will not be visible in the Script Editor. Only in the Finder after you save it to disk and run it from there. A better way to reference the icon is to set up a property within your script (property iconName : iconNumber) with a name of choice and the number you gave it. For Example :
property myLogo : 29531
Then you can reference the icon with that name (in this case, myLogo). Then you can reference the icon like this :
display dialog "My own icon" buttons "OK" default button 1 with icon myLogo
The icon won’t be displayed when run in the Script Editor. You have to save it and run it as an application from the Finder. Evan Francois adds this comment: "One must be sure it’s
their script displaying the dialog. For example, if the display dialog statement falls within a tell application “Finder”, end tell block, it won’t work. In cases like
that, be sure to nest the display dialog statement within a tell me, end tell pair.