02-26-2007, 05:53 PM
You need to install the Developer Tools (XCode) which would give you access to the SetFile command, which allows for setting file attributes on files in HFS directories.
Specifically, you would want to use this command:
%/Developer/Tools/SetFile -a L filename.ext
to set the Locked attribute to file called filename.txt
Specifically, you would want to use this command:
%/Developer/Tools/SetFile -a L filename.ext
to set the Locked attribute to file called filename.txt