Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Posting-Version: version B 2.10.2 9/18/84; site dartvax.UUCP Path: utzoo!watmath!clyde!burl!ulysses!mhuxr!mhuxj!houxm!whuxlm!harpo!decvax!dartvax!robertm From: robertm@dartvax.UUCP (Robert P. Munafo) Newsgroups: net.micro.mac Subject: Re: RMover and ResEdit answers and question Message-ID: <2668@dartvax.UUCP> Date: Fri, 4-Jan-85 02:53:21 EST Article-I.D.: dartvax.2668 Posted: Fri Jan 4 02:53:21 1985 Date-Received: Sat, 5-Jan-85 02:46:31 EST References: <216@calmasd.UUCP> <186@usl.UUCP> <1281@orca.UUCP> Organization: Dartmouth College, Hanover, NH Lines: 57 > Now, check the list of the application's resources for the one > unusual one. With the exception of mFinder, all the applications > I've seen that have their own icons also have a resource with a name > I've never seen before. Often this name is a person's name or the name > of the program itself. For example, the unusual resource in Missile > Command is RJUN. In Mouse Stampede, it's MOUS. If you open this > resource, it is a short bit of code (about 50 bytes). The resource with the strange type is the "Finder version number info" resource - this resource is identical in format to type STR (string) and contains a message indicating the date and version number of the application. In the case of my Missile Command game the string says, "Game Vers. 2.3 August 18,1984" . This text cannot be interpreted by the Finder, but nevertheless, Inside Mac says it has to be there. (I think it's in the "Putting Together an Application" section.) The type, "RJUN" in this case, must be unique for each different application. (By the way, "RJUN" came from the original name of the source code file on the Lisa, "Rjunk27", an unlikely name which would not conflict with other files on the ProFile.) > And now, a question: pending real documentation for ResEdit, can anyone post > a cookbook method for editing an application's existing icon? So far, no > changes I have made with ResEdit in already-visible icons have had any > effect. I think the problem is that once the Finder has seen an application > with an icon, it thinks that's always the application's icon... > > David D. Levine (...decvax!tektronix!orca!davidl) [UUCP] > (orca!davidl.tektronix@csnet-relay.csnet) [ARPA] For some applications, this ican be rather complex task, unless the resource editor does it for you. Basically, you must find the "BNDL" resource. This contains the type and ID number of the "Finder version info" resource, and a number of lists of resource types and ID numbers pointing to: o Icons that are used by the application (some applications have more than one type of document icon) o Files on the disk that are used by the application (these files must be copied by the Finder along with the application when it is dragged onto another disk.) The format for the BNDL resource is too complex for me to describe here - if you really want to know more about it, see Inside Mac. For most applications which do not create documents, you will find only one ICN# resource, containing 256 bytes of data (two icons) - the picture and the mask. Edit these (remember that the mask should be a solid filled-in version of the picture), and hold down the Option and Command keys simultaneously when the Finder is starting up. This should show the new icon (although it will also lose all the folders and the "Get Info" data.) > P.S. Is there an ASCII chart desk accessory? Sidekick for the IBM PC has > one, why doesn't the Mac? I'd like to see this, too - perhaps someone can hack together a modified "Key Caps". If it could also display different fonts, we would be able to use it to figure out the keyboard layout for Cairo and other bizarre fonts. -- Robert P. Munafo ...!{decvax,cornell,linus}!dartvax!robertm