File Lock Toggle

Here a very tiny macro for the Finder:

What

It toggles the Locked flag (UF_IMMUTABLE) of a file/folder.

How to

  1. Select one or more items in the Finder
  2. Run the macro
  • If the item was unlocked, it will be locked, and vice versa

I’m using that script for years as a Service workflow, but it works equally well as KM macro.

File Lock Toggle.kmmacros (2.4 KB)

5 Likes

Thank you for the macro :+1: Have it built into my pallet.