[X-Unix] Set file's creator?

Doug McNutt douglist at macnauchtan.com
Sat Jan 15 05:05:24 PST 2005


At 13:24 +0100 1/15/05, Kuestner, Bjoern wrote:
>setfile -c ...
><http://corz.org/osx/su/setfile.php>

Be careful of case sensitivity.  SetFile may still be required. You need to make a copy of /Developer/Tools/SetFile in /usr/bin/ or add /Developer/Tools/ to your PATH.

From MPW on Mac OS 9

help SetFile
SetFile         # set file/folder attributes
SetFile [optionŠ] file/folderŠ
    -a attributes           # attributes (lowercase = 0, uppercase = 1)*
    -c creator              # file creator
    -comments text          # put "text" in the "Get Info" comments field
    -d date                 # creation date (mm/dd/[yy]yy [hh:mm[:ss] [AM | PM]])*
    -l h,v                  # ICON location (horizontal,vertical)*
    -m date                 # modification date (mm/dd/[yy]yy [hh:mm[:ss] [AM | PM]])*
    -noResolve              # don't resolve aliases on the input file path
    -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)
        W   Always switch launch (if possible)
        D   Desktop*

    Note: Options/attributes marked with an asterisk (*) are allowed with folders



-- 
-->  There are 10 kinds of people:  those who understand binary, and those who don't <--


More information about the X-Unix mailing list