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: 9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4   10.5   11.0    Statistic    FMM    Blog  


Requests to open a session on the device.

Component Version macOS Windows Linux Server FileMaker iOS SDK
ImageCapture 6.4 Yes No No No No
MBS( "ImageCapture.OpenDevice"; Device { ; Wait } )   More


Parameter Description Example Flags
Device The device ID.
Can be zero based index in device list.
Or UUID, Name or persitent ID string.
Wait Pass 1 to wait till complete.
Or pass 0 to return immediately.
Default is 1 to wait.
0 Optional


Returns OK or error.


Requests to open a session on the device.
A client MUST open a session on a device in order to use the device.

If needed closes current device to open new device.
Added 20 seconds timeout for version 8.1.

With ImageCapture.DeviceInfo you can query hasOpenSession later to verify you have a session open.


Open device:

Set Variable [$r; Value:MBS("ImageCapture.OpenDevice"; Images::Device)]
If [MBS("iserror")]
    Show Custom Dialog ["Failed to open"; MBS("Text.RemovePrefix"; $r; "[MBS] ")]
    Exit Script []
End If

See also

Example Databases

Blog Entries

Release notes

Created 11st September 2016, last changed 4th February 2020

ImageCapture.MediaFiles   -   ImageCapture.PDF

Feedback: Report problem or ask question.

MBS Xojo Plugins

Start Chat