hgun@ais.net (H-Gun Labs Chicago) writes: }Hey, } } I've been trying to find a way to list all of the mac specific Flags and }resource/fork file sizes ..etc. I've looked into several XFCN type packages }that claim to do all these things but I'm not really sure how to use them }within MacPerl or how to install them. Provided you're using a PPC machine, it's not really necessary to use XFCN's to do this any more, thanks to Mac::Files. The size of the data fork has always been easy: $dsize = -s $file; where $file contains the path to the file. The size of the resource fork is a little harder to obtain: $has = Mac::Files::FSpGetCatInfo($file); $rsize = $has->{ioFlRLgLen}; and you can also get a lot of other information out of the structure returned by Mac::Files::FSpGetCatInfo, like the Finder flags, type and creator: $finfo = $has->{ioFlFndrInfo}; $type = $finfo->{fdType}; $creator = $finfo->{fdCreator}; $flags = $finfo->{fdFlags}; It's a good idea to have a copy of Inside Macintosh around when using these. There's an online archive at <http://devworld.apple.com/cgi-bin/ftpchooser.pl?partialURL=Technical_Documentat ion/Inside_Macintosh/> I don't think Mac::Files works on 68k machines, and I don't know whether Matthias is going to compile them into a future BigMacPerl or not. } }Thanks } }please send links and email to Adrian Dimond hgun@ais.net } } } } } } } } } }www.hgun.com } }we don't deal in firearms } } } }***** Want to unsubscribe from this list? }***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch -------- Paul J. Schinder NASA Goddard Space Flight Center Code 693 Greenbelt, MD 20770 schinder@pjstoaster.pg.md.us ***** Want to unsubscribe from this list? ***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch