TouchBar.SetDefaultItemIdentifiers
----------------------------------

Sets the default identifiers.

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

MBS( "TouchBar.SetDefaultItemIdentifiers"; TouchBarRef; List ) 

**MBS**( **"TouchBar.SetDefaultItemIdentifiers";** /\* Sets the default identifiers. \*/  
**$TouchBarRef**; /\* The reference number for the touch bar.e.g. $TouchBar \*/   
**$List**) /\* The list of items. \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| TouchBarRef | The reference number for the touch bar. | $TouchBar |
| List | The list of items. |  |

### Result

Returns OK or error.

### Description

Sets the default identifiers.  
An array of identifiers specifying the items in this touch bar.   
Item identifiers should be globally unique, excepting NSTouchBarItemIdentifierFixedSpaceSmall, NSTouchBarItemIdentifierFixedSpaceLarge, NSTouchBarItemIdentifierFlexibleSpace, and NSTouchBarItemIdentifierOtherItemsProxy.  
   
This array also corresponds to the item ordering for the receiver in the "default set" in the customization palette.  
### Examples

Sets an item some space and a proxy for others:

 MBS ( "TouchBar.SetDefaultItemIdentifiers"; $TouchBar ; "Print¶NSTouchBarItemIdentifierFixedSpaceSmall¶NSTouchBarItemIdentifierOtherItemsProxy" )  
### See also

- [TouchBar.AssignToApp](TouchBarAssignToApp.md)
- [TouchBar.AssignToWindow](TouchBarAssignToWindow.md)
- [TouchBar.GetDefaultItemIdentifiers](TouchBarGetDefaultItemIdentifiers.md)
- [TouchBar.GetItemIdentifiers](TouchBarGetItemIdentifiers.md)
- [TouchBar.SetPrincipalItemIdentifier](TouchBarSetPrincipalItemIdentifier.md)

### Example Databases

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

This function checks for a license.

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

  
[TouchBar.SetCustomizationRequiredItemIdentifiers](TouchBarSetCustomizationRequiredItemIdentifiers.md) - [TouchBar.SetPrincipalItemIdentifier](TouchBarSetPrincipalItemIdentifier.md)

[HTML Version](TouchBarSetDefaultItemIdentifiers.shtml)