FileDialog.SetSheetScriptTrigger
--------------------------------

Sets sheet trigger.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [FileDialog](component_FileDialog.md) | [8.5](newinversion85.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "FileDialog.SetSheetScriptTrigger"; FileName; ScriptName ) 

**MBS**( **"FileDialog.SetSheetScriptTrigger";** /\* Sets sheet trigger. \*/  
**$FileName**; /\* The name of the FileMaker file that contains the scripte.g. Get(FileName) \*/   
**$ScriptName**) /\* The name of the script to run \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FileName | The name of the FileMaker file that contains the script | Get(FileName) |
| ScriptName | The name of the script to run |  |

### Result

Returns OK or error.

### Description

Sets sheet trigger.  
Trigger is only for Mac and you need to enable it with [FileDialog.SetUseSheet](FileDialogSetUseSheet.md).  
### See also

- [FileDialog.SetUseSheet](FileDialogSetUseSheet.md)

### Release notes

- **Version 8.5**
    - Added sheet support for [FileDialog](http://www.mbsplugins.eu/component_FileDialog.shtml) functions: [FileDialog.SetSheetScriptTrigger](http://www.mbsplugins.eu/FileDialogSetSheetScriptTrigger.shtml), [FileDialog.GetUseSheet](http://www.mbsplugins.eu/FileDialogGetUseSheet.shtml) and [FileDialog.SetUseSheet](http://www.mbsplugins.eu/FileDialogSetUseSheet.shtml).

### Example Databases

- [Files/FileDialog](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/Files/FileDialog.shtml#6ScriptAnchor_)

### Blog Entries

- [MBS FileMaker Plugin, version 8.5pr7](https://www.mbsplugins.de/archive/2018-11-14/MBS_FileMaker_Plugin_version_8/monkeybreadsoftware_blog_filemaker)
- [File dialogs with sheets for FileMaker](https://www.mbsplugins.de/archive/2018-11-09/File_dialogs_with_sheets_for_F/monkeybreadsoftware_blog_filemaker)

This function is free to use.

Created 9th November 2018 , last changed 9th November 2018

  
[FileDialog.SetResolvesAliases](FileDialogSetResolvesAliases.md) - [FileDialog.SetShowHidden](FileDialogSetShowHidden.md)

[HTML Version](FileDialogSetSheetScriptTrigger.shtml)