SyntaxColoring.ScriptSearchButton.SetEnabled
--------------------------------------------

Sets whether we should show the search button to search all scripts.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [SyntaxColoring](component_SyntaxColoring.md) | [16.0](newinversion160.md) | ✅ Yes | ✅ Yes | ❌ No | ❌ No | ❌ No |

MBS( "SyntaxColoring.ScriptSearchButton.SetEnabled"; Value ) 

**MBS**( **"SyntaxColoring.ScriptSearchButton.SetEnabled";** /\* Sets whether we should show the search button to search all scripts. \*/  
**$Value**) /\* The new setting.  
Pass 1 to enable or 0 to disable.e.g. 1 \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| Value | The new setting.   Pass 1 to enable or 0 to disable. | 1 |

### Result

Returns OK or error.

### Description

Sets whether we should show the search button to search all scripts.  
When enabled, the MBS Plugin adds a button to Script Workspace to search all scripts. On macOS we add it to the window title bar on the right and show a magnifying glass button. For Windows we add a regular button to the Script Workspace.   
  
Once clicked, the plugin takes a snapshot of all the scripts in the Script Workspace. Then we open a window to show the search window and whatever results we have. Opening the window may take a few seconds with a big database! On Windows we may store the xml in a temporary file while the window is open.  
  
You can search text in scripts and our plugin shows where the text is found with a little preview.   
  
Keep the window open to perform multiple searches. When you are done, you can of course close it. The plugin closes the search window when you close the parent Script Workspace window.  
  
On macOS you can click the result entry and jump to the script. The plugin searches the script by name, so please avoid multiple scripts with the same name in different groups.  
  
You can customize the search.html file. You find it within the bundle for the Mac plugin. Copy it to the extensions folder. You can customize it and whenever the window opens, we check if the search.html is in the extensions folder and use that one. Your customization may use the same https://monkeybreadsoftware.com/ URLs to jump to scripts. Or trigger scripts via fmp:// URLs.  
### Examples

Turn the feature on:

 MBS ( "SyntaxColoring.ScriptSearchButton.SetEnabled"; 1 )  
Turn the feature off:

 MBS ( "SyntaxColoring.ScriptSearchButton.SetEnabled"; 0 )  
### See also

- [SyntaxColoring.ScriptGoToBox.GetEnabled](SyntaxColoringScriptGoToBoxGetEnabled.md)
- [SyntaxColoring.ScriptGoToBox.SetEnabled](SyntaxColoringScriptGoToBoxSetEnabled.md)
- [SyntaxColoring.ScriptSearchBox.GetEnabled](SyntaxColoringScriptSearchBoxGetEnabled.md)
- [SyntaxColoring.ScriptSearchBox.SetEnabled](SyntaxColoringScriptSearchBoxSetEnabled.md)
- [SyntaxColoring.ScriptSearchBox.SetRegEx](SyntaxColoringScriptSearchBoxSetRegEx.md)
- [SyntaxColoring.ScriptSearchBox.SetText](SyntaxColoringScriptSearchBoxSetText.md)
- [SyntaxColoring.ScriptSearchButton.GetEnabled](SyntaxColoringScriptSearchButtonGetEnabled.md)

### Release notes

- **Version 16.0**
    - Added [SyntaxColoring.ScriptSearchButton.GetEnabled](https://www.mbsplugins.eu/SyntaxColoringScriptSearchButtonGetEnabled.shtml) and [SyntaxColoring.ScriptSearchButton.SetEnabled](https://www.mbsplugins.eu/SyntaxColoringScriptSearchButtonSetEnabled.shtml) functions.

### Blog Entries

- [Building a Smarter Search: Inside the MBS Script Search](https://www.mbsplugins.de/archive/2026-05-14/Building_a_Smarter_Search_Insi/monkeybreadsoftware_blog_filemaker)
- [Script Search in MBS Plugin: Finally, a Search That Works the Way You Think](https://www.mbsplugins.de/archive/2026-05-06/Script_Search_in_MBS_Plugin_Fi/monkeybreadsoftware_blog_filemaker)
- [Search all Scripts improved](https://www.mbsplugins.de/archive/2026-02-23/Search_all_Scripts_improved/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 16.0 News](https://www.mbsplugins.de/archive/2026-01-20/MBS_FileMaker_Plugin_160_News/monkeybreadsoftware_blog_filemaker)
- [Neues MBS Plugin 16.0 für Claris FileMaker](https://www.mbsplugins.de/archive/2026-01-13/Neues_MBS_Plugin_160_für_Clar/monkeybreadsoftware_blog_filemaker)
- [MBS Plugin 16.0 for Claris FileMaker - More than 7800 functions in one plugin](https://www.mbsplugins.de/archive/2026-01-13/MBS_Plugin_160_for_Claris_File/monkeybreadsoftware_blog_filemaker)
- [Search all scripts with MBS Plugin](https://www.mbsplugins.de/archive/2026-01-06/Search_all_scripts_with_MBS_Pl/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 16.0pr5](https://www.mbsplugins.de/archive/2026-01-01/MBS_FileMaker_Plugin_version_1/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 28th December 2025 , last changed 14th May 2026

  
[SyntaxColoring.ScriptSearchButton.GetEnabled](SyntaxColoringScriptSearchButtonGetEnabled.md) - [SyntaxColoring.SetAddFindbars](SyntaxColoringSetAddFindbars.md)

[HTML Version](SyntaxColoringScriptSearchButtonSetEnabled.shtml)