TouchBar.ToggleCustomizationPalette
-----------------------------------

Show or dismiss the customization palette for the currently displayed touch bars.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [TouchBar](component_TouchBar.md) | [6.5](newinversion65.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "TouchBar.ToggleCustomizationPalette" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Show or dismiss the customization palette for the currently displayed touch bars.   
NSApplication validates this selector against whether the current touch bars are customizable and, if configured on a menu item, will standardize and localize the title. If the current system does not have touch bar support, the menu item will be automatically hidden.  
### Examples

Toggle Customization:

 If \[MBS ( "[TouchBar.Available](TouchBarAvailable.md)" )\]  
 Set Variable \[$r ; Value:MBS ("TouchBar.ToggleCustomizationPalette")\]  
Else  
 Show Custom Dialog \["No TouchBar supported on this Mac."\]  
End If  
### See also

- [TouchBar.Available](TouchBarAvailable.md)

### Example Databases

- [Mac only/TouchBar](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Mac%20only/TouchBar.shtml#4ScriptAnchor_)

This function checks for a license.

Created 1st November 2016 , last changed 3th November 2016

  
[TouchBar.SetPrincipalItemIdentifier](TouchBarSetPrincipalItemIdentifier.md) - [TouchBar.Visible](TouchBarVisible.md)

[HTML Version](TouchBarToggleCustomizationPalette.shtml)