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

Files.IsUserImmutable

Queries the user immutable flag.

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

Parameters

Parameter Description Example
Path Native path to the file or directory. "/System/Applications/Preview.app"

Result

Returns 1, 0 or error.

Description

Queries the user immutable flag.
This is the lock checkbox in Finder's information window.
Value is true for user-immutable resources.

Examples

Query the user lock flag:

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

See also

Release notes

Blog Entries

This function checks for a license.

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


Files.IsSystemImmutable - Files.ItemExists