Name
SetFile
Synopsis
SetFile [options
]files
Sets the HFS+ file attributes (metadata) of files
. SetFile is installed with the Xcode Tools (/Developer/Tools). Since this directory isn’t in the shell’s search path by default, you might to need to specify SetFile’s pathname to invoke it. See also
GetFileInfo
.
Options
-
-a
attribute
Set those file attributes that toggle on or off (sometimes called “Finder flags”). To set an attribute, provide that attribute’s letter as uppercase in
attribute
. To unset an attribute, provide the letter in lowercase. You can specify multiple attributes at once; any not specified will retain their current setting infiles
. Refer to Table 2-8 for the specific attributes.
Attribute |
Set | unset |
Meaning |
|
A |a |
File is/isn’t an alias. |
|
B | b |
File has/hasn’t a bundle resource. |
|
C | c |
File has/hasn’t a custom icon. |
|
D | d |
File is/isn’t on the Desktop. |
|
E | e |
Filename extension is/isn’t hidden. |
|
I | i |
File is/isn’t init’ed. |
|
L | l |
File is/isn’t locked. |
|
M | m |
Multiple users can/can’t run file at once (applies to application files). |
|
N | n |
File has/hasn’t INIT resource. |
|
S | s |
File is/isn’t a system file (locks name). |
|
T | t |
File is/isn’t a stationary file. |
|
V | v |
File is/isn’t invisible to Finder. |
-
-c
creator
Set the file’s four-character ...
Get Mac OS X Tiger in a Nutshell now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.