PhotoPicker.SetScript
---------------------

Sets the script to call when picker is done.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [PhotoPicker](component_PhotoPicker.md) | [12.5](newinversion125.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ✅ Yes |

MBS( "PhotoPicker.SetScript"; FileName; ScriptName ) 

**MBS**( **"PhotoPicker.SetScript";** /\* Sets the script to call when picker is done. \*/  
**$FileName**; /\* The file name for the script to trigger.e.g. "test.fmp12" \*/   
**$ScriptName**) /\* The script name of the script to launch.e.g. "EmailComposerFinished" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| FileName | The file name for the script to trigger. | "test.fmp12" |
| ScriptName | The script name of the script to launch. | "EmailComposerFinished" |

### Result

Returns OK or error.

### Description

Sets the script to call when picker is done.  
### See also

- [ImagePicker.SetScript](ImagePickerSetScript.md)
- [PhotoPicker.GetScriptName](PhotoPickerGetScriptName.md)
- [PhotoPicker.Present](PhotoPickerPresent.md)
- [PhotoPicker.SetSize](PhotoPickerSetSize.md)

### Example Databases

- [iOS/Examples/iOS Photo Picker](https://www.mbsplugins.eu/MBS-FileMaker-Plugin-Examples/iOS/Examples/iOS%20Photo%20Picker.shtml#4ScriptAnchor_)

### Blog Entries

- [Top 10 from the MBS Plugin in 2022](https://www.mbsplugins.de/archive/2022-12-29/Top_10_from_the_MBS_Plugin_in_/monkeybreadsoftware_blog_filemaker)
- [MBS FileMaker Plugin 12.5 News](https://www.mbsplugins.de/archive/2022-11-17/MBS_FileMaker_Plugin_125_News/monkeybreadsoftware_blog_filemaker)
- [PhotoPicker for iOS with FileMaker iOS SDK](https://www.mbsplugins.de/archive/2022-11-09/PhotoPicker_for_iOS_with_FileM/monkeybreadsoftware_blog_filemaker)

### FileMaker Magazin

- [Ausgabe 2/2025, Seite 18](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)

This function is free to use.

Created 28th September 2022 , last changed 24th March 2023

  
[PhotoPicker.SetMode](PhotoPickerSetMode.md) - [PhotoPicker.SetSelectionLimit](PhotoPickerSetSelectionLimit.md)

[HTML Version](PhotoPickerSetScript.shtml)