On Oct 14, 2004, at 7:02 PM, jtownsen wrote:

I've heard that their is an Apple-provided tool to unlock files (e.g. in terminal). Anyone know what the tool is called?

SetFile. Uppercase attributes enable certain options, and lowercase disables them. Locking is, predictably enough, "L/l". For example, to unlock foo.txt:


SetFile -al foo.txt

For details, see "man SetFile".

Or any other approach?

It looks like there's a FSpRstFLock() function in Mac::Files - part of the Mac::Carbon distribution on CPAN - but I haven't used that.


sherm--



Reply via email to