PhotoPicker.Present
-------------------

Presents the photo picker view.

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

MBS( "PhotoPicker.Present" ) ### Parameters

none

### Result

Returns OK or error.

### Description

Presents the photo picker view.  
This will show the user interface and start the process.  
Your script may call this in a script and then wait for the script trigger.  
  
When the script is called, we close the picker automatically.  
  
macOS supported added for MBS Plugin v13.2. We open a popover window to pick, so you may want to trigger this from a button, so the popover is shown next to the mouse cursor on the button.  
### Examples

Shows photo picker:

 Set Variable \[ $r ; Value: MBS ( "[PhotoPicker.Clear](PhotoPickerClear.md)") \]   
Set Variable \[ $r ; Value: MBS ( "[PhotoPicker.SetScript](PhotoPickerSetScript.md)"; Get(FileName); "GotImage") \]   
Set Variable \[ $r ; Value: MBS ( "[PhotoPicker.SetSelectionLimit](PhotoPickerSetSelectionLimit.md)"; 10) \]   
Set Variable \[ $r ; Value: MBS ( "PhotoPicker.Present") \]  
### See also

- [ImagePicker.Present](ImagePickerPresent.md)
- [PhotoPicker.Clear](PhotoPickerClear.md)
- [PhotoPicker.IsPresented](PhotoPickerIsPresented.md)
- [PhotoPicker.SetScript](PhotoPickerSetScript.md)
- [PhotoPicker.SetSelectionLimit](PhotoPickerSetSelectionLimit.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 20](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)
- [Ausgabe 2/2025, Seite 17 bis 18](https://filemaker-magazin.de/neuigkeit/4286-Appetithappen-FMM_202502)

This function checks for a license.

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

  
[PhotoPicker.IsPresented](PhotoPickerIsPresented.md) - [PhotoPicker.SetDisabledCapabilities](PhotoPickerSetDisabledCapabilities.md)

[HTML Version](PhotoPickerPresent.shtml)