ContinuityCamera.SetScriptTrigger
---------------------------------

Sets the script to trigger.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [ImagePicker](component_ImagePicker.md) [ContinuityCamera](component_ContinuityCamera.md) | [9.2](newinversion92.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "ContinuityCamera.SetScriptTrigger"; FileName; ScriptName ) 

**MBS**( **"ContinuityCamera.SetScriptTrigger";** /\* Sets the script to trigger. \*/  
**$FileName**; /\* The database file name where the script is located.e.g. "test.fmp12" \*/   
**$ScriptName**) /\* The script name.e.g. "MyScript" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FileName | The database file name where the script is located. | "test.fmp12" |
| ScriptName | The script name. | "MyScript" |

### Result

Returns OK or error.

### Description

Sets the script to trigger.  
When some picture or document is available, we call the script.  
Parameter to the script is currently the document type, e.g. JPEG, TIFF or PDF.  
  
  
With plugin version 6.0 or newer the script name can be a script ID number. In that case the plugin queries the script name for the given script ID. This allows to call scripts by ID and avoid problems if scripts are later renamed.  
  
Notice: FileMaker 19.2 adds a fmplugin extended privileges. If you have such an extended privileges to allow the plugin to trigger scripts, you need to grant permissions for it. If such a privilege is not defined, the plugin is allowed to trigger scripts. See FileMaker product documentation for details.  
### Examples

Set trigger:

 Set Variable \[ $r ; Value: MBS ("ContinuityCamera.SetScriptTrigger"; Get(FileName); "ContinuityCameraTrigger") \]  
### See also

- [ContinuityCamera.Initialize](ContinuityCameraInitialize.md)

### Example Databases

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

### Blog Entries

- [MBS FileMaker Advent calendar - Door 21 - Continuity Camera and Vision](https://www.mbsplugins.de/archive/2024-12-21/MBS_FileMaker_Advent_calendar_/monkeybreadsoftware_blog_filemaker)
- [Seven things to add to your FileMaker solution today with MBS Plugin](https://www.mbsplugins.de/archive/2021-03-21/Seven_things_to_add_to_your_Fi/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin, version 9.2pr2](https://www.mbsplugins.de/archive/2019-04-05/MBS_FileMaker_Plugin_version_9/monkeybreadsoftware_blog_filemaker)
- [Continuity Camera for FileMaker](https://www.mbsplugins.de/archive/2019-04-03/Continuity_Camera_for_FileMake/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 1/2023, Seite 30](https://filemaker-magazin.de/neuigkeit/4218-Appetithappen-FMM_202301)
- [Ausgabe 6/2019, Seite 36](https://filemaker-magazin.de/neuigkeit/4064-Appetithappen-FMM_201906)

This function checks for a license.

Created 31st March 2019 , last changed 13th November 2021

  
[ContinuityCamera.SetEnabled](ContinuityCameraSetEnabled.md) - [CoreImage.Detect](CoreImageDetect.md)

[HTML Version](ContinuityCameraSetScriptTrigger.shtml)