Locked files on a MAC

When a file is locked on a MAC, you cannot compress the directory containing it. Even if the locked file is way down is some subdirectory. This should be changed by the MAC developers. Compressing files doesn't change the file in any way. It makes a copy.

Also, attempting to unlock a file is combersome. A simple keyboard or popup menu to unlock the file would be easy to do and VERY USEFUL. Just add a Lock/Unlock menu item to the popup menu for a file or directory.

An option to do that recursively (for all files in a directory, down to the lowest level) would also be VERY USEFUL.


When will the MAC developers start listening to their users?

MacBook Pro 15″, macOS 11.7

Posted on Mar 24, 2024 9:15 AM

Reply
Question marked as Top-ranking reply

Posted on Mar 24, 2024 10:26 AM

Niel has provided the correct answer by not only giving the Feedback link, but also provides a way to do exactly what you want.


I would say that your use case is only an issue for a very small number of users. Very few will find a need to Lock a file and even less would need to compress a folder that contains that locked file. For the users like you that do have a need to do that, the provided Script will unlock all files in a folder and you can also create your own Script that will do that and compress the folder simply by dragging the folder onto the script. The Script Editor is a powerful tool that will let you do much more to personalize your workflow. For more information on creating your own scripts:

Script Editor User Guide for Mac - Apple Support

8 replies
Question marked as Top-ranking reply

Mar 24, 2024 10:26 AM in response to dreappdev

Niel has provided the correct answer by not only giving the Feedback link, but also provides a way to do exactly what you want.


I would say that your use case is only an issue for a very small number of users. Very few will find a need to Lock a file and even less would need to compress a folder that contains that locked file. For the users like you that do have a need to do that, the provided Script will unlock all files in a folder and you can also create your own Script that will do that and compress the folder simply by dragging the folder onto the script. The Script Editor is a powerful tool that will let you do much more to personalize your workflow. For more information on creating your own scripts:

Script Editor User Guide for Mac - Apple Support

Mar 24, 2024 10:06 AM in response to dreappdev

Click here and pick a form.


If you're referring to the Compressor application, use the one for it.

If you're referring to the Compress menu item in the Finder, use the macOS one.


To unlock all items in a folder, choose Utilities from the Finder's Go menu, open the Script Editor, and run:


do shell script "chflags -R nouchg " & quoted form of POSIX path of (choose folder)


(251799)

Jun 24, 2024 4:44 AM in response to michelefromwassenaar

There are some misunderstandings here - starting with the fact that the issue at hand has nothing to do with Compressor! The question is about compressing (zipping) files in Finder. Compressor is a professional video application, used to encode video with different formats, bit rates, etc.


If I had noticed this earlier, I'd have suggested this be moved to a more appropriate forum, but now it is pointless (perhaps).

Having set that out of the way... I can only imagine the reason why: the zip format does not allow the locking mechanism. In other words, if you were to zip and then unzip, the locked files would no longer be locked.


If you don't mind that, then you can easily unlock the files, as already explained.

Another alternative is to zip using Terminal. This in effect ignores the Finder lock, and (as predicted) the files will be unlocked if you unzip them.

Mar 24, 2024 10:04 AM in response to dreappdev

FCP stands for Final Cut Pro. The applications are very often used in conjunction. There is feedback in Compressor as well.


It may matter if the file is embedded in an FCP project, which is the most common source of content used in Compressor.


I’ll assume it’s standalone video file of a basic format and codec and locked singly in the Finder and not at a folder level.

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.

Locked files on a MAC

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