Is there a way to lock all docs in a folder?

Is there a way to lock all docs in a folder?


Mac mini, macOS 10.15

Posted on Dec 12, 2020 1:15 PM

Reply
Question marked as Top-ranking reply

Posted on Dec 12, 2020 1:54 PM

Thanks, but experimented and the following seems to work. Select all docs in the folder then Opt-Cmd-I. The info window applies to all selected docs and allows the lock checkbox to be selected. All docs also marked as locked!


2 replies

Dec 12, 2020 1:43 PM in response to PeterQTX

Not without writing an AppleScript to do it, and then processing the lock status of every file in that folder. This approach will not display the locked status on the file icon. You would have to select a specific document, press ⌘+i, and on that panel, verify that it is locked, or not. Simply locking the containing folder does not lock the individual documents within it.


This could be done from the Terminal command line in a loop with elevated privileges that would place a lock icon on the documents, but then you would have to use the command-line again, to use elevated privileges to unlock the document, as the Finder wouldn't have the permissions to do so. Lock status applied with elevated privileges places the familiar file icon lock status.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Is there a way to lock all docs in a folder?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.