TouchBar.Available
------------------

Checks whether TouchBar is available.

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

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

none

### Result

Returns 1 or 0.

### Description

Checks whether TouchBar is available.  
Returns 1 on macOS 10.12.1 with TouchBar support (or newer).  
The value 1 does not mean that there is a TouchBar, just the software to handle it.  
But 0 clearly says that there is none.  
### Examples

Check touchbar:

 If \[ MBS ( "TouchBar.Available" ) \]   
 Show Custom Dialog \[ "TouchBar" ; "Is available and may be installed." \]   
Else  
 Show Custom Dialog \[ "TouchBar" ; "Is not available." \]   
End If  
### See also

- [TouchBar.SetAutomaticCustomizeTouchBarMenuItemEnabled](TouchBarSetAutomaticCustomizeTouchBarMenuItemEnabled.md)
- [TouchBar.ToggleCustomizationPalette](TouchBarToggleCustomizationPalette.md)

### Example Databases

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

This function is free to use.

Created 1st November 2016 , last changed 30th December 2022

  
[TouchBar.AssignToWindow](TouchBarAssignToWindow.md) - [TouchBar.Clear](TouchBarClear.md)

[HTML Version](TouchBarAvailable.shtml)