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
10.6
Statistic
FMM
Blog
DocumentCameraScan.SetScript
Sets the script to trigger when scan is done.
| Component | Version | macOS | Windows | Linux | Server | FileMaker iOS SDK |
| DocumentCameraScan | 10.0 | No | No | No | No | Yes |
Parameters
| Parameter | Description | Example |
|---|---|---|
| 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
- DocumentCameraScan.ErrorMessage
- DocumentCameraScan.Initialize
- DocumentCameraScan.PageCount
- DocumentCameraScan.Supported
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