Topics   All   MacOS (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Deprecated   Guides   Examples   Videos
New in version: 12.2   12.3   12.4   12.5   13.0   13.1   13.2   13.3   13.4   13.5    Statistic    FMM    Blog  

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

💬 Ask a question or report a problem