• 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: custome icon on an applescript in OS X?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: custome icon on an applescript in OS X?


  • Subject: Re: custome icon on an applescript in OS X?
  • From: Philip Aker <email@hidden>
  • Date: Fri, 11 Oct 2002 04:03:59 -0700

On Wednesday, Oct 9, 2002, at 09:58 US/Pacific, Bill Cheeseman wrote:

on 02-10-09 9:34 AM, Philip Aker at email@hidden wrote:

That's hard to say because I usually work with ".r" files in either CodeWarrior or Project Builder. For the purpose at hand I suggest to use Apple's ResEdit 2.1.3 For working with ResEdit you'll probably want to drop down to OS 9 because it's now a legacy product and sometimes acts a little kinky in Classic.

If you don't actually need to edit the icons, you can use the Rez and DeRez located in /Developer/Tools/ to inject the new icons into the app (man Rez and man DeRez).

Don't change the icons in an AppleScript applet unless you also know how to change the other resources that tie the icons and the application together -- at least under Mac OS 9 and earlier. Failing to do this the right way
will very likely cause your new icon to appear as the standard icon for ALL of your AppleScript applets, and also for every applet on every machine where your applet gets installed.

I haven't had this problem on OS X.


Changing icons properly requires a good understanding of the technical intricacies of Inside Macintosh.

The ResEdit manual[1] is fine for this purpose if you realize that on OS X you must have a correctly formatted 'icns' resource and that you must restart for the new icon to kick in. Personally, I think the restart thing is by now a well known bug because on this list I've noticed a few comments on 'update' for Finder not working and on the Carbon list remarks about Nav Manager not refreshing folder views correctly when custom file types are used. Also, a similar thing happens if one uses 'ditto -rsrc' to duplicate a folder with a custom icon to the desktop (from the same disk).


[1] WRT to your question in another post, if one wants to change the icon associations for an app, get your icons together, delete the 'FREF' resource, then examine the 'BNDL' resource. When you get to the 'BNDL' view, look up in the ResEdit menubar and choose "Extended View" from the 'BNDL' menu. Everything becomes perfectly obvious at that point and new 'FREF' resources will be auto-created after exiting the 'BNDL' viewer. If one knew what they were doing in ResEdit, then one would always remember this step because it's the big kahuna.



Philip Aker
http://www.aker.ca
_______________________________________________
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: 
 >Re: custome icon on an applescript in OS X? (From: Bill Cheeseman <email@hidden>)

  • Prev by Date: Re: Quark Xpress again (style spec)
  • Next by Date: Re: XML beginner question (about special characters display)
  • Previous by thread: Re: custome icon on an applescript in OS X?
  • Next by thread: Re: bytes to megabytes
  • Index(es):
    • Date
    • Thread