Files.SetSystemImmutable
------------------------

Sets the system immutable flag.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [Files](component_Files.md) | [14.2](newinversion142.md) | ✅ Yes | ❌ No | ❌ No | ✅ Yes, on macOS | ✅ Yes |

MBS( "Files.SetSystemImmutable"; Path; Value ) 

**MBS**( **"Files.SetSystemImmutable";** /\* Sets the system immutable flag. \*/  
**$Path**; /\* Native path to the file or directory.e.g. "/System/Applications/Preview.app" \*/   
**$Value**) /\* The new flag value.   
Pass 1 or 0. \*/ 

### Parameters

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

### Result

Returns OK or error.

### Description

Sets the system immutable flag.  
You may not be able to set it from FileMaker unless FileMaker runs with evaluated permissions.  
### See also

- [Files.IsSystemImmutable](FilesIsSystemImmutable.md)
- [Files.SetUserImmutable](FilesSetUserImmutable.md)

### Release notes

- **Version 14.2**
    - Added [Files.IsSystemImmutable](https://www.mbsplugins.eu/FilesIsSystemImmutable.shtml), [Files.IsUserImmutable](https://www.mbsplugins.eu/FilesIsUserImmutable.shtml), [Files.SetSystemImmutable](https://www.mbsplugins.eu/FilesSetSystemImmutable.shtml) and [Files.SetUserImmutable](https://www.mbsplugins.eu/FilesSetUserImmutable.shtml) functions.

### Blog Entries

- [News in MBS FileMaker Plugin 14.2](https://www.mbsplugins.de/archive/2024-05-21/News_in_MBS_FileMaker_Plugin_1/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 14.2pr4](https://www.mbsplugins.de/archive/2024-05-02/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

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

  
[Files.SetReadOnly](FilesSetReadOnly.md) - [Files.SetTagNames](FilesSetTagNames.md)

[HTML Version](FilesSetSystemImmutable.shtml)