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.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2   10.3   10.4    Statistic  


Sets the script to trigger when scan is done.

Component Version macOS Windows Server FileMaker Cloud FileMaker iOS SDK
DocumentCameraScan 10.0 No No No No Yes
MBS( "DocumentCameraScan.SetScript"; Filename; ScriptName )   More


Parameter Description Example value
Filename The database file name where the script is located. "test.fmp12"
ScriptName The script name. "MyScript"


Returns OK or error.


Sets the script to trigger when scan is done.
Parameter to the script is either Cancel, Error or Scan.
In case of error, please use DocumentCameraScan.ErrorMessage to query the error message to display.
When you get Scan as parameter, you may use DocumentCameraScan.PageCount function to query number of pages scanned.


Script may look like this:

Set Variable [ $param ; Value: Get(ScriptParameter) ]
If [ $param = "Error" ]
    Show Custom Dialog [ "Failed to scan" ; MBS( "DocumentCameraScan.ErrorMessage" ) ]
Else If [ $param = "Scan" ]
    Perform Script [ Specified: From list ; “Import” ; Parameter: ]
Else If [ $param = "Cancel" ]
    # do nothing
End If

See also

Example Databases

Blog Entries

Created 6th January 2020, last changed 8th January 2020

DocumentCameraScan.Scan   -   DocumentCameraScan.Supported

Feedback: Report problem or ask question.

MBS FileMaker Plugins