Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Sets the user immutable flag.

Component Version macOS Windows Linux Server iOS SDK
Files 14.2 ✅ Yes ❌ No ❌ No ✅ Yes, on macOS ✅ Yes
MBS( "Files.SetUserImmutable"; Path; Value )   More


Parameter Description Example
Path Native path to the file or directory. "/System/Applications/"
Value The new flag value.
Pass 1 or 0.


Returns OK or error.


Sets the user immutable flag.
This is the lock checkbox in Finder's information window.


Clears the locked flag for a file:

Set Variable [ $r; Value: MBS( "Files.SetUserImmutable"; "/Users/cs/Desktop/test.rtf"; 0 ) ]

See also

Release notes

Blog Entries

This function checks for a license.

Created 18th April 2024, last changed 18th April 2024

Files.SetTagNames - Files.StandardizePath