in reply to Question about reading the Mac filesystem
These modules also include numerous (read "gazillions o' ") constants that help you toy with the filesystem: comments, resource stuff, etc. This was just a striptease of what these modules are really capable of: file locking, resource editing, directory info, etc. I, too, realize that the PODs are all too often inadequate but I take what I can get- including the MacPerl book which you can get anywhere online.use Mac::Files; #along with strict and -wT my $file="AgentM\'s Rockin\' G4 Cube:Desktop Folder:FileSupafly"; my $cat=FSpGetCatInfo($file); #throw in some dies along here my $fileinfo=$cat->ioFlFndrInfo(); print $filecat->ioNamePtr(), ' ',$fileinfo->fdCreator(); #prints filen +ame and its 4 letter creator type
Please- while using MacPerl, keep you tray table up and your seat in the upright and locked position. Thank you.
|
|---|