Thanks for the link Josh

This is what I was basically looking for , something like MacPerl 
Toolbox calls to deal with Mac specific file info - I have the 
developer Tools but I haven't installed them yet, so I'll give them a 
shot.

>
>I just noticed that the Developer Tools don't install the man
>page for SetFile by default, either.
>
><http://www.osxfaq.com/man/1/SetFile.html>
>
>HTH
>
>-josh


Also for anyone else interested in this kind of stuff (Bruce?) there 
are some good pointers as to how to go about implementing it

Quoting from http://www.osxfaq.com/shells.html#q8 :-

Can I view or set file creator and type codes from the command-line?

I wrote a little Perl script to "wrap" the GetFileInfo command that 
comes on the Developer CD:

                 bash$ whats /Volumes/MacHD/*             
                 R*ch adrp       BBEdit Lite 4.6           
                 CDrw dDrw       Glossary_schema.drw        
                 MSIE adrp       Internet Explorer           
                 MSWD adrp       Microsoft Word               
                 NIFt adrp       NiftyTelnet 1.1 SSH r3         
                 CARO PDF        ziegnet.pdf                   

You can also make changes using SetFile(1) (also on the Developer CD):

G4 [/Developer/Tools] mzieg $ ./SetFile
setfile [option...] file...
         -a attributes           # attributes (lowercase = 0, uppercase = 1)*
         -c creator              # file creator
         -d date                 # creation date (mm/dd/[yy]yy 
[hh:mm[:ss] [AM | PM]])*
         -m date                 # modification date (mm/dd/[yy]yy 
[hh:mm[:ss] [AM | PM]])*
         -t type                 # file type

                 Note: Period (.) represents the current date and time.

                 Note: [yy]yy < 100 assumes 20th century, e.g. 19yy

                 Note: The following attributes may be used with the -a option:
                 A   Alias file
                 V   Invisible*
                 B   Bundle
                 S   System (name locked)
                 T   Stationary
                 C   Custom icon*
                 L   Locked
                 I   Inited*
                 N   No INIT resources
                 M   Shared (can run multiple times)
                 D   Desktop*

Note that SetFile could be VERY powerful when used in conjunction 
with find(1)...

Reply via email to