use Display dialoge window with other icon

Hi All,

Could any one tell me whether it is possible to display a dialog box with given icon.

That is the dialog with a company logo, any photos etc.

Thanks,
Gopal

try this, the syntax prevents the application from launching,
but you can use any path to a .icns file (alias or file reference)


set iTunesPath to (path to applications folder as string) & "iTunes.app"
set iTunesIcon to path to resource "iTunes.icns" in bundle (iTunesPath as alias)
display dialog return & return with icon iTunesIcon

Thanks Stefan,

This script work fine. But my requirement is to place company logo in the dialogue box. And this logo is not bundled in any application. It is an separate single art files.
we need to call this image while displaying the dialog box.

Is this possible in Applescript. Please help me in this regard.

Thanks,
Gopal

Yes, just specify the path to the .icns file


display dialog return & return with icon alias "path:to:Icon.icns"