Manual Pages for UNIX Darwin command on man SetFile
MyWebUniversity

Manual Pages for UNIX Darwin command on man SetFile

SETFILE(1) BSD General Commands Manual SETFILE(1)

NAME

//uussrr//bbiinn//SSeettFFiillee - set attributes of files and directories

SYNOPSIS

//uussrr//bbiinn//SSeettFFiillee [-PP] [-aa attributes] [-cc creator] [-dd date] [-mm date]

[-tt type] file ...

DESCRIPTION

//uussrr//bbiinn//SSeettFFiillee is a tool to set the file attributes on files in an HFS+ directory. It attempts to be similar to the sseettffiillee command in MPW. It can apply rules to more than one file with the options applying to all files listed. Flags:

-PP Acts on a symlink file instead on the file the symlink resolves to.

-aa attributes Sets the file attributes bits where attributes is a string

of case sensitive letters. Each letter corresponds to a file attribute: an uppercase letter indicates that the attribute bit is set (1), a lowercase letter indicates that it is not (0). NNoottee:: attributes not specified remain unchanged. A | a Alias file B | b Has bundle C | c Custom icon (allowed on folders) D | d Located on the desktop (allowed on folders) E | e Extension is hidden (allowed on folders)

I | i Inited - Finder is aware of this file and has

given it a location in a window. (allowed on folders) L | l Locked M | m Shared (can run multiple times) N | n File has no INIT resource S | s System file (name locked) T | t "Stationery Pad" file V | v Invisible (allowed on folders) Z | z Busy (allowed on folders)

-cc creator Specifies the file's creator, where creator is a string of

exactly four characters.

-dd date Sets the creation date, where date is a string of the

form: "mm/dd/[yy]yy [hh:mm:[:ss] [AM | PM]]" NNootteess::

Enclose the string in quotation marks if it contains spa-

ces. The date must be in the Unix epoch, that is, between

1/1/1970 and 1/18/2038. If the year is provided as a two-

digit year, it is assumed to be in the 21st century and must be from 00 (2000) through 38 (2038).

-mm date Sets the modification date where date is a string of the

form in -dd above. (mm/dd/[yy]yy [hh:mm:[:ss] [AM | PM]])

-tt type Sets the file type, where type is a string of exactly four

characters.

RETURN VALUES

00 attributes set 11 syntax error 22 any other error

SEE ALSO

GetFileInfo(1) EEXXAAMMPPLLEESS This command line sets the modification date of "myFile":

SetFile -m "8/4/2001 16:13" myFile

Mac OS X September 27, 2005 Mac OS X




Contact us      |      About us      |      Term of use      |       Copyright © 2000-2019 MyWebUniversity.com ™