ScriptWorkspace.SetBackgroundColor
----------------------------------

Sets background color of script workspace.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ScriptWorkspace](component_ScriptWorkspace.md) | [15.3](newinversion153.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "ScriptWorkspace.SetBackgroundColor"; Color ) 

**MBS**( **"ScriptWorkspace.SetBackgroundColor";** /\* Sets background color of script workspace. \*/  
**$Color**) /\* The color specification.  
This can be a common color name or color in hex notation: # followed by 2 digits for red, green, blue and optional alpha, e.g. #FF0000 for full red.e.g. "#FFFFDD" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Color | The color specification.   This can be a common color name or color in hex notation: # followed by 2 digits for red, green, blue and optional alpha, e.g. #FF0000 for full red. | "#FFFFDD" |

### Result

Returns OK or error.

### Description

Sets background color of script workspace.  
A fun function to set color if needed, e.g. to highlight the script or make two ScriptWorkspaces have different colors.  
### Examples

Set to yellow:

 MBS ( "ScriptWorkspace.SetBackgroundColor"; "#FFFFDD" )  
### See also

- [ScriptWorkspace.GetBackgroundColor](ScriptWorkspaceGetBackgroundColor.md)

### Release notes

- **Version 15.3**
    - Added [ScriptWorkspace.GetBackgroundColor](https://www.mbsplugins.eu/ScriptWorkspaceGetBackgroundColor.shtml) and [ScriptWorkspace.SetBackgroundColor](https://www.mbsplugins.eu/ScriptWorkspaceSetBackgroundColor.shtml) functions.

### Blog Entries

- [MBS FileMaker Plugin 15.3 News](https://www.mbsplugins.de/archive/2025-07-29/MBS_FileMaker_Plugin_153_News/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 15.3pr1](https://www.mbsplugins.de/archive/2025-06-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 21st May 2025 , last changed 21st May 2025

  
[ScriptWorkspace.SelectedLines](ScriptWorkspaceSelectedLines.md) - [ScriptWorkspace.SetFocusToScriptList](ScriptWorkspaceSetFocusToScriptList.md)

[HTML Version](ScriptWorkspaceSetBackgroundColor.shtml)