I am looking for a way to lock a file other than clicking the check box with a mouse in the Get Info window. I am trying to incorporate this into an iKey shortcut, so an Applescript would work, as well as command lines in Terminal. This is system 10.4.7.
Sincerely,
Michael
The Unix command for changing a file's or folder's permissions is "chmod." Open the Terminal app and enter 'man chmod' without quotes to get the man page on using the command. You can then create an Applescript that incorporates the command to change permissions on a file or folder using Applescript's 'do shell script' instruction.