[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

RE: [MacPerl] Resource file hacking with MacPerl



The best description I've found of how one might go about playing with
resources is in chapter 13 of "MacPerl: Power and Ease." The particular link
I'm looking at is http://www.yggdrasil.com/~rdm/MP/320.Toolbox.html#10,
which shows you how to create a droplet that will modify the 'time' resource
of a file dropped onto it. I'm no toolbox guru, but it looks like it opens
and manipulates the resource of the file in question without worrying about
a resource chain. I'm sure someone will let me know if my mileage is going
to vary.

-- Creede

-----Original Message-----
From: Joseph N. Hall [mailto:joseph@5sigma.com]
Sent: Sunday, July 25, 1999 10:46 PM
To: macperl@macperl.org
Subject: [MacPerl] Resource file hacking with MacPerl


Can someone suggest a technique for using MacPerl to write
applications that modify resource files?  I notice, somewhat to
my dismay, that MacPerl does not appear to maintain separate resource
file chains for itself and its application, and a cursory look at the
Mac::* modules doesn't reveal one that incorporates the "resource
editor" routines (the ones that don't open resource files into the
resource chain).  I can use OpenResFile but (1) it worries me
greatly when I add random "stuff" to MacPerl's resource chain, and 
(2) it doesn't let me do things like get a list of all the resources in
a file and their meta-data.

I'm not on this list, so please be sure to CC: directly to me.

  -joseph

--
Joseph N. Hall, prop., 5 Sigma Productions       mailto:joseph@5sigma.com
Author, Effective Perl Programming . . . . . http://www.effectiveperl.com
Perl Training  . . . . . . . . . . . . . . .  http://www.perltraining.com


===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org

===== Want to unsubscribe from this list?
===== Send mail with body "unsubscribe" to macperl-request@macperl.org