• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Icon on Alert window
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Icon on Alert window


  • Subject: Re: Icon on Alert window
  • From: Walter Ian Kaye <email@hidden>
  • Date: Fri, 2 Jul 2004 23:22:34 -0700

At 12:22p -0300 07/02/2004, Bernardo Hoehl didst inscribe upon an electronic papyrus:

I want to display an Icon (e.g. My picture) on a window.

code: display dialog "My text" with icon number_of_icon

I have posted a topic at Macscripters.net and Camelot answered:

=============

The icon number represents the resource ID of an ICON resource in the file.

Since your script doesn't include the necessary resource, your script doesn't show the icon.

You'll need to use some kind of resource editor to copy the icon from the sample script into your own script (or duplicate the sample script file and edit the embedded script)

==============

Question:

Which program do I use to embed the image in the Applescript Applet?

You can use ResFool <http://www.ljug.com/>, or ResEdit if you wanna run Classic.

NOTE: You must *first* save your script as a resource file. You canNOT use Script Editor 2.0 for that; you have to use either Script Editor 1.9 (from Jaguar) or the commercial program Script Debugger <http://www.latenightsw.com/>.

Note also that in place of a B&W 'ICON' resource, you may use a color 'cicn' resource instead. Make sure it's 32x32. Don't leave the default id of 128; I like to use an id in the 300 range (330 is my arbitrary preference) to avoid conflicts.

Also: ResFool does not yet have any icon editor; you will need to already have an icon. Or you can use ResEdit to draw your icon, etc.


HTH,
-Walter
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.


References: 
 >Icon on Alert window (From: Bernardo Hoehl <email@hidden>)

  • Prev by Date: Folder actions for embedding profiles
  • Next by Date: Re: QuarkXPress 6 Spread Finder
  • Previous by thread: Icon on Alert window
  • Next by thread: Re: Icon on Alert window
  • Index(es):
    • Date
    • Thread