>-----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 It seems to me that the most reliable solution would be to modify MacPerl (if necessary) so that it explicity calls UseResFile() and the Get1Resource() family of calls (in between saving and restoring CurResFile()), with the result that MacPerl would be unaffected by and would not affect modifications to the resource chain by scripts, and then implement those calls for MacPerl scripts to use. Josh -- Joshua Juran Metamage Software Creations =) Tools for Wizards wanderer@metamage.com <http://www.metamage.com/> * Creation at the highest state of the art * ===== Want to unsubscribe from this list? ===== Send mail with body "unsubscribe" to macperl-request@macperl.org