Topics   All   Mac OS X (Only)   Windows (Only)   Linux (Only, Not)   iOS (Only, Not)  
Components   Crossplatform Mac & Win   Server   Client   Old   Guides   Examples
New in version: 8.5   9.0   9.1   9.2   9.3   9.4   9.5   10.0   10.1   10.2    Statistic  

DocumentCameraScan.SetScript

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

Parameters

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

Result

Returns OK or error.

Description

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.

Examples

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.




Links
MBS Xojo blog