Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old

MBS FileMaker Plugin Example Databases

ImageCapture

All examples are included with download of MBS FileMaker Plugin.

ImageCapture.fmp12

Overview
Tables2
Relationships0
Layouts2
Scripts7
Value Lists0
Custom Functions0
Custom Menus33
File Options
Default custom menu set[Standard FileMaker Menus]
When opening file
Minimum allowed version12.0
Login usingAccount Name; Account= Admin
Allow user to save passwordOff
Require iOS passcodeOff
Switch to layoutOff
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenScript: Start
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Devices
10 fields defined, 0 record
Devices
Images
7 fields defined, 0 record
Images

Fields

Table Name: Devices - 10 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
IDNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      NameNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          RemoteNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              SharedNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  transportTypeNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      serialNumberStringNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          locationDescriptionNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              persistentIDStringNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  iconNormal, BinaryAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                      capabilitiesNormal, TextAuto-Enter:
                                      • Allow editing
                                      Validation:
                                      • Only during data entry
                                      Storage:
                                      • Repetitions: 1
                                      • Indexing: None
                                      • Automatically create indexes as needed
                                      • Index Language: German

                                          Table Name: Images - 7 Fields
                                          Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
                                          ImageNormal, BinaryAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                              DeviceNormal, TextAuto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Global
                                              • Repetitions: 1
                                              • Index Language: German
                                                  supportedResolutionsNormal, TextAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Global
                                                  • Repetitions: 1
                                                  • Index Language: German
                                                      supportedDocumentTypesNormal, TextAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Global
                                                      • Repetitions: 1
                                                      • Index Language: German
                                                          supportedScaleFactorsNormal, TextAuto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Global
                                                          • Repetitions: 1
                                                          • Index Language: German
                                                              supportedBitDepthsNormal, TextAuto-Enter:
                                                              • Allow editing
                                                              Validation:
                                                              • Only during data entry
                                                              Storage:
                                                              • Global
                                                              • Repetitions: 1
                                                              • Index Language: German
                                                                  supportedMeasurementUnitsNormal, TextAuto-Enter:
                                                                  • Allow editing
                                                                  Validation:
                                                                  • Only during data entry
                                                                  Storage:
                                                                  • Global
                                                                  • Repetitions: 1
                                                                  • Index Language: German

                                                                      Layout Objects: Devices

                                                                      Regular Fields

                                                                      Field Name: Devices::ID
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 48 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 62 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Field Name: Devices::Name
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 66 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 80 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Field Name: Devices::Remote
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 84 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 98 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Field Name: Devices::Shared
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 102 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 116 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Field Name: Devices::transportType
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 120 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 134 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Field Name: Devices::serialNumberString
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 138 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 152 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Field Name: Devices::locationDescription
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 156 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 170 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Field Name: Devices::persistentIDString
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 174 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 188 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Field Name: Devices::icon
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 192 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 317 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      No

                                                                      Field Name: Devices::capabilities
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 318 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 332 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      Yes

                                                                      Group Buttons

                                                                      Button PropertiesCoordinatesScript/Script Step
                                                                        Type:
                                                                      • Text: Initialize
                                                                        Additional Properties:
                                                                      • Change to hand cursor over button
                                                                      • Rectangular
                                                                      • Top: 12 pt
                                                                      • Left: 30 pt
                                                                      • Bottom: 37 pt
                                                                      • Right: 139 pt
                                                                      • Anchoring: Left, Top
                                                                      Perform Script [ “Initialize” ]

                                                                      Scripts:


                                                                      Button PropertiesCoordinatesScript/Script Step
                                                                        Type:
                                                                      • Text: Use this device
                                                                        Additional Properties:
                                                                      • Change to hand cursor over button
                                                                      • Rectangular
                                                                      • Top: 54 pt
                                                                      • Left: 402 pt
                                                                      • Bottom: 85 pt
                                                                      • Right: 541 pt
                                                                      • Anchoring: Left, Top
                                                                      Perform Script [ “UseDevice” ]

                                                                      Scripts:


                                                                      Layout Objects: Images

                                                                      Regular Fields

                                                                      Field Name: Images::Image
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 168 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 395 pt
                                                                      • Right: 541 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      No

                                                                      Field Name: Images::Device
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 36 pt
                                                                      • Left: 168 pt
                                                                      • Bottom: 50 pt
                                                                      • Right: 421 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      No

                                                                      Field Name: Images::supportedResolutions
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 54 pt
                                                                      • Left: 168 pt
                                                                      • Bottom: 68 pt
                                                                      • Right: 421 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      No

                                                                      Field Name: Images::supportedDocumentTypes
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 72 pt
                                                                      • Left: 168 pt
                                                                      • Bottom: 86 pt
                                                                      • Right: 421 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      No

                                                                      Field Name: Images::supportedScaleFactors
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 90 pt
                                                                      • Left: 168 pt
                                                                      • Bottom: 104 pt
                                                                      • Right: 421 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      No

                                                                      Field Name: Images::supportedBitDepths
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 108 pt
                                                                      • Left: 168 pt
                                                                      • Bottom: 122 pt
                                                                      • Right: 421 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      No

                                                                      Field Name: Images::supportedMeasurementUnits
                                                                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                      • Top: 126 pt
                                                                      • Left: 168 pt
                                                                      • Bottom: 140 pt
                                                                      • Right: 421 pt
                                                                      • Anchoring: Left, Top
                                                                      Field Format:
                                                                      • Edit Box
                                                                      Field Behavior:
                                                                      • Allow field to be entered: In Find mode, In Browse mode
                                                                      • Touch keyboard type: System Default
                                                                      • Go to next field using: Tab key
                                                                      No

                                                                      Group Buttons

                                                                      Button PropertiesCoordinatesScript/Script Step
                                                                        Type:
                                                                      • Text: Open Device
                                                                        Additional Properties:
                                                                      • Change to hand cursor over button
                                                                      • Rectangular
                                                                      • Top: 6 pt
                                                                      • Left: 12 pt
                                                                      • Bottom: 31 pt
                                                                      • Right: 127 pt
                                                                      • Anchoring: Left, Top
                                                                      Perform Script [ “OpenDevice” ]

                                                                      Scripts:


                                                                      Button PropertiesCoordinatesScript/Script Step
                                                                        Type:
                                                                      • Text: Close Device
                                                                        Additional Properties:
                                                                      • Change to hand cursor over button
                                                                      • Rectangular
                                                                      • Top: 6 pt
                                                                      • Left: 138 pt
                                                                      • Bottom: 31 pt
                                                                      • Right: 253 pt
                                                                      • Anchoring: Left, Top
                                                                      Perform Script [ “CloseDevice” ]

                                                                      Scripts:


                                                                      Button PropertiesCoordinatesScript/Script Step
                                                                        Type:
                                                                      • Text: Request Scan
                                                                        Additional Properties:
                                                                      • Change to hand cursor over button
                                                                      • Rectangular
                                                                      • Top: 6 pt
                                                                      • Left: 276 pt
                                                                      • Bottom: 31 pt
                                                                      • Right: 391 pt
                                                                      • Anchoring: Left, Top
                                                                      Perform Script [ “StartScan” ]

                                                                      Scripts:


                                                                      Script Hierarchy

                                                                      Initialize
                                                                      Start
                                                                      UseDevice
                                                                      OpenDevice
                                                                      CloseDevice
                                                                      StartScan
                                                                      Preferred Device

                                                                      Next Script: [Start]
                                                                      Script NameInitialize
                                                                      Run script with full access privilegesOff
                                                                      Include In MenuYes
                                                                      Layouts that use this script
                                                                      Scripts that use this script
                                                                        Script Definition
                                                                        Script Steps
                                                                        • Set Variable [ $r; Value:MBS("ImageCapture.Initialize") ]
                                                                        • If [ MBS("IsError") ]
                                                                        • Show Custom Dialog [ Title: "Initialize"; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                        • Exit Script [ ]
                                                                        • End If
                                                                        • Go to Layout [ “Devices” (Devices) ]
                                                                        • Delete All Records [ No dialog ]
                                                                        • #Query devices
                                                                        • Set Variable [ $Devices; Value:MBS("ImageCapture.Devices") ]
                                                                        • #loop over entries
                                                                        • Set Variable [ $Count; Value:ValueCount($Devices) ]
                                                                        • If [ $Count > 0 ]
                                                                        • Set Variable [ $Index; Value:1 ]
                                                                        • Loop
                                                                        • #Check Device
                                                                        • Set Variable [ $ID; Value:$index-1 // HoleWert($Devices; $index) ]
                                                                        • New Record/Request
                                                                        • Set Field [ Devices::Name; MBS("ImageCapture.DeviceInfo"; $ID; "name") ]
                                                                        • Set Field [ Devices::ID; $ID ]
                                                                        • Set Field [ Devices::Remote; Let ( [ r = MBS("ImageCapture.DeviceInfo"; $ID; "remote") ]; If(r = 1; "yes"; "no") ) ]
                                                                        • Set Field [ Devices::Shared; Let ( [ r = MBS("ImageCapture.DeviceInfo"; $ID; "shared") ]; If(r = 1; "yes"; "no") ) ]
                                                                        • Set Field [ Devices::transportType; MBS("ImageCapture.DeviceInfo"; $ID; "transportType") ]
                                                                        • Set Field [ Devices::serialNumberString; MBS("ImageCapture.DeviceInfo"; $ID; "serialNumberString") ]
                                                                        • Set Field [ Devices::locationDescription; MBS("ImageCapture.DeviceInfo"; $ID; "locationDescription") ]
                                                                        • Set Field [ Devices::persistentIDString; MBS("ImageCapture.DeviceInfo"; $ID; "persistentIDString") ]
                                                                        • Set Field [ Devices::icon; MBS("ImageCapture.DeviceInfo"; $ID; "icon") ]
                                                                        • Set Field [ Devices::capabilities; MBS("ImageCapture.DeviceInfo"; $ID; "capabilities") ]
                                                                        • Commit Records/Requests [ No dialog ]
                                                                        • #next
                                                                        • Set Variable [ $Index; Value:$index + 1 ]
                                                                        • Exit Loop If [ $index > $Count ]
                                                                        • End Loop
                                                                        • End If
                                                                        Fields used in this script
                                                                        Scripts used in this script
                                                                          Layouts used in this script
                                                                          Tables used in this script
                                                                          Table occurrences used by this script
                                                                          Custom Functions used by this script
                                                                            Custom menu set used by this script

                                                                              Previous Script: [Initialize]Next Script: [UseDevice]
                                                                              Script NameStart
                                                                              Run script with full access privilegesOff
                                                                              Include In MenuYes
                                                                              Layouts that use this script
                                                                                Scripts that use this script
                                                                                  Script Definition
                                                                                  Script Steps
                                                                                  • Go to Layout [ “Devices” (Devices) ]
                                                                                  • Delete All Records [ No dialog ]
                                                                                  Fields used in this script
                                                                                    Scripts used in this script
                                                                                      Layouts used in this script
                                                                                      Tables used in this script
                                                                                        Table occurrences used by this script
                                                                                          Custom Functions used by this script
                                                                                            Custom menu set used by this script

                                                                                              Previous Script: [Start]Next Script: [OpenDevice]
                                                                                              Script NameUseDevice
                                                                                              Run script with full access privilegesOff
                                                                                              Include In MenuYes
                                                                                              Layouts that use this script
                                                                                              Scripts that use this script
                                                                                                Script Definition
                                                                                                Script Steps
                                                                                                • Set Variable [ $device; Value:Devices::Name ]
                                                                                                • Go to Layout [ “Images” (Images) ]
                                                                                                • Delete All Records [ No dialog ]
                                                                                                • Set Field [ Images::Device; $device ]
                                                                                                Fields used in this script
                                                                                                Scripts used in this script
                                                                                                  Layouts used in this script
                                                                                                  Tables used in this script
                                                                                                  Table occurrences used by this script
                                                                                                  Custom Functions used by this script
                                                                                                    Custom menu set used by this script

                                                                                                      Previous Script: [UseDevice]Next Script: [CloseDevice]
                                                                                                      Script NameOpenDevice
                                                                                                      Run script with full access privilegesOff
                                                                                                      Include In MenuYes
                                                                                                      Layouts that use this script
                                                                                                      Scripts that use this script
                                                                                                        Script Definition
                                                                                                        Script Steps
                                                                                                        • Set Variable [ $r; Value:MBS("ImageCapture.OpenDevice"; Images::Device) ]
                                                                                                        • If [ MBS("iserror") ]
                                                                                                        • Show Custom Dialog [ Title: "Failed to open"; Message: MBS("Text.RemovePrefix"; $r; "[MBS] "); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                                                        • Exit Script [ ]
                                                                                                        • End If
                                                                                                        • Pause/Resume Script [ Duration (seconds): ,1 ]
                                                                                                        • Set Variable [ $r; Value:MBS("ImageCapture.GetParameter"; "availableFunctionalUnitTypes") ]
                                                                                                        • If [ Length ( $r ) > 0 ]
                                                                                                        • #if we have more than one, pick one
                                                                                                        • Set Variable [ $r; Value:MBS("ImageCapture.requestSelectFunctionalUnit"; "Flatbed") ]
                                                                                                        • If [ MBS("iserror") ]
                                                                                                        • Show Custom Dialog [ Title: "Failed to get flatbed?"; Message: MBS("Text.RemovePrefix"; $r; "[MBS] "); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                                                        • Exit Script [ ]
                                                                                                        • End If
                                                                                                        • End If
                                                                                                        • Set Variable [ $r; Value:MBS("ImageCapture.Features") ]
                                                                                                        Fields used in this script
                                                                                                        Scripts used in this script
                                                                                                          Layouts used in this script
                                                                                                            Tables used in this script
                                                                                                            Table occurrences used by this script
                                                                                                            Custom Functions used by this script
                                                                                                              Custom menu set used by this script

                                                                                                                Previous Script: [OpenDevice]Next Script: [StartScan]
                                                                                                                Script NameCloseDevice
                                                                                                                Run script with full access privilegesOff
                                                                                                                Include In MenuYes
                                                                                                                Layouts that use this script
                                                                                                                Scripts that use this script
                                                                                                                  Script Definition
                                                                                                                  Script Steps
                                                                                                                  Fields used in this script
                                                                                                                    Scripts used in this script
                                                                                                                      Layouts used in this script
                                                                                                                        Tables used in this script
                                                                                                                          Table occurrences used by this script
                                                                                                                            Custom Functions used by this script
                                                                                                                              Custom menu set used by this script

                                                                                                                                Previous Script: [CloseDevice]Next Script: [Preferred Device]
                                                                                                                                Script NameStartScan
                                                                                                                                Run script with full access privilegesOff
                                                                                                                                Include In MenuYes
                                                                                                                                Layouts that use this script
                                                                                                                                Scripts that use this script
                                                                                                                                  Script Definition
                                                                                                                                  Script Steps
                                                                                                                                  • # query some things
                                                                                                                                  • Set Variable [ $supportedResolutions; Value:MBS("ImageCapture.GetParameter"; "supportedResolutions") ]
                                                                                                                                  • If [ MBS("iserror") ]
                                                                                                                                  • Show Custom Dialog [ Title: "Failed start scan"; Message: MBS("Text.RemovePrefix"; $supportedResolutions; "[MBS] "); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                                                                                  • Exit Script [ ]
                                                                                                                                  • End If
                                                                                                                                  • Set Variable [ $supportedDocumentTypes; Value:MBS("ImageCapture.GetParameter"; "supportedDocumentTypes") ]
                                                                                                                                  • Set Variable [ $supportedScaleFactors; Value:MBS("ImageCapture.GetParameter"; "supportedScaleFactors") ]
                                                                                                                                  • Set Variable [ $supportedBitDepths; Value:MBS("ImageCapture.GetParameter"; "supportedBitDepths") ]
                                                                                                                                  • Set Variable [ $supportedMeasurementUnits; Value:MBS("ImageCapture.GetParameter"; "supportedMeasurementUnits") ]
                                                                                                                                  • Set Field [ Images::supportedResolutions; $supportedResolutions ]
                                                                                                                                  • Set Field [ Images::supportedDocumentTypes; $supportedDocumentTypes ]
                                                                                                                                  • Set Field [ Images::supportedScaleFactors; $supportedScaleFactors ]
                                                                                                                                  • Set Field [ Images::supportedBitDepths; $supportedBitDepths ]
                                                                                                                                  • Set Field [ Images::supportedMeasurementUnits; $supportedMeasurementUnits ]
                                                                                                                                  • # set parameters
                                                                                                                                  • Set Variable [ $physicalWidth; Value:MBS("ImageCapture.GetParameter"; "physicalWidth") ]
                                                                                                                                  • Set Variable [ $physicalHeight; Value:MBS("ImageCapture.GetParameter"; "physicalHeight") ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.SetParameter"; "documentType"; "USLetter") ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.SetParameter"; "documentName"; "Scan") ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.SetParameter"; "resolution"; 300) ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.SetParameter"; "bitDepth"; 8) ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.SetParameter"; "pixelDataType"; "RGB") ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.SetParameter"; "documentUTI"; "jpeg") ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.SetParameter"; "downloadsDirectory"; "temp") ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.SetParameter"; "scanArea"; 0; 0; $physicalWidth; $physicalHeight) ]
                                                                                                                                  • Set Variable [ $p; Value:MBS( "ProgressDialog.Reset") ]
                                                                                                                                  • Set Variable [ $p; Value:MBS( "ProgressDialog.SetTitle"; "Scanning" ) ]
                                                                                                                                  • Set Variable [ $p; Value:MBS( "ProgressDialog.SetBottomText"; "" ) ]
                                                                                                                                  • Set Variable [ $p; Value:MBS( "ProgressDialog.SetTopText"; "Scan from Flatbet scanner." ) ]
                                                                                                                                  • Set Variable [ $p; Value:MBS( "ProgressDialog.SetButtonCaption"; "Cancel" ) ]
                                                                                                                                  • Set Variable [ $p; Value:MBS( "ProgressDialog.SetProgress"; -1 ) ]
                                                                                                                                  • Set Variable [ $p; Value:MBS( "ProgressDialog.Show" ) ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("ImageCapture.requestScan") ]
                                                                                                                                  • Set Variable [ $error; Value:MBS("iserror") // check error state here as progress dialog function clears it. ]
                                                                                                                                  • Set Variable [ $p; Value:MBS( "ProgressDialog.Hide" ) ]
                                                                                                                                  • If [ $error ]
                                                                                                                                  • Show Custom Dialog [ Title: "Failed start scan"; Message: MBS("Text.RemovePrefix"; $r; "[MBS] "); Default Button: “OK”, Commit: “No” ]
                                                                                                                                  • Exit Script [ ]
                                                                                                                                  • End If
                                                                                                                                  • #read images
                                                                                                                                  • Pause/Resume Script [ Duration (seconds): ,1 ]
                                                                                                                                  • Set Variable [ $Paths; Value:MBS("ImageCapture.ImagePaths") ]
                                                                                                                                  • If [ Length ( $Paths ) > 0 ]
                                                                                                                                  • Set Variable [ $Count; Value:ValueCount ( $Paths ) ]
                                                                                                                                  • If [ $Count > 0 ]
                                                                                                                                  • Set Variable [ $Index; Value:1 ]
                                                                                                                                  • Loop
                                                                                                                                  • Set Variable [ $Path; Value:GetValue($Paths; $index) ]
                                                                                                                                  • New Record/Request
                                                                                                                                  • Set Field [ Images::Image; MBS("Container.ReadFile"; $path) ]
                                                                                                                                  • Set Variable [ $r; Value:MBS( "Files.Delete"; $Path ) ]
                                                                                                                                  • Commit Records/Requests [ No dialog ]
                                                                                                                                  • Set Variable [ $Index; Value:$index + 1 ]
                                                                                                                                  • Exit Loop If [ $index > $count ]
                                                                                                                                  • End Loop
                                                                                                                                  • End If
                                                                                                                                  • End If
                                                                                                                                  Fields used in this script
                                                                                                                                  Scripts used in this script
                                                                                                                                    Layouts used in this script
                                                                                                                                      Tables used in this script
                                                                                                                                      Table occurrences used by this script
                                                                                                                                      Custom Functions used by this script
                                                                                                                                        Custom menu set used by this script

                                                                                                                                          Previous Script: [StartScan]
                                                                                                                                          Script NamePreferred Device
                                                                                                                                          Run script with full access privilegesOff
                                                                                                                                          Include In MenuYes
                                                                                                                                          Layouts that use this script
                                                                                                                                            Scripts that use this script
                                                                                                                                              Script Definition
                                                                                                                                              Script Steps
                                                                                                                                              • Set Variable [ $PreferredDevice; Value:MBS( "ImageCapture.PreferredDevice" ) ]
                                                                                                                                              • Set Variable [ $Name; Value:MBS( "ImageCapture.DeviceInfo"; $PreferredDevice; "name" ) ]
                                                                                                                                              • Show Custom Dialog [ Title: "Preferred Device"; Message: $name; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                                                                                              Fields used in this script
                                                                                                                                                Scripts used in this script
                                                                                                                                                  Layouts used in this script
                                                                                                                                                    Tables used in this script
                                                                                                                                                      Table occurrences used by this script
                                                                                                                                                        Custom Functions used by this script
                                                                                                                                                          Custom menu set used by this script

                                                                                                                                                            Download example: ImageCapture

                                                                                                                                                            Used functions: