Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

PhotoPicker.Present

Presents the photo picker view.

Component Version macOS Windows Linux Server iOS SDK
PhotoPicker 12.5 ✅ 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") ]
Set Variable [ $r ; Value: MBS( "PhotoPicker.SetScript"; Get(FileName); "GotImage") ]
Set Variable [ $r ; Value: MBS( "PhotoPicker.SetSelectionLimit"; 10) ]
Set Variable [ $r ; Value: MBS( "PhotoPicker.Present") ]

See also

Example Databases

Blog Entries

This function checks for a license.

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


PhotoPicker.IsPresented - PhotoPicker.SetDisabledCapabilities