MBS FileMaker Plugin Example Databases

Twain

All examples are included with download of MBS FileMaker Plugin.

Twain.fmp12

Overview
Tables2
Relationships0
Layouts2
Scripts11
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 layoutTwain
Hide all toolbarsOff
Script triggers
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Twain
12 fields defined, 0 record
Twain
Images
8 fields defined, 0 record
Images

Fields

Table Name: Twain - 12 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ManufacturerNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      ProductFamilyNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ProductNameNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              SupportedGroupsNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  ProtocolMajorNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      IdNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          VersionMajorNumNormal, TextAuto-Enter:
                          • Allow editing
                          Validation:
                          • Only during data entry
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                              VersionMinorNumNormal, TextAuto-Enter:
                              • Allow editing
                              Validation:
                              • Only during data entry
                              Storage:
                              • Repetitions: 1
                              • Indexing: None
                              • Automatically create indexes as needed
                              • Index Language: German
                                  VersionLanguageNormal, TextAuto-Enter:
                                  • Allow editing
                                  Validation:
                                  • Only during data entry
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                      VersionCountryNormal, TextAuto-Enter:
                                      • Allow editing
                                      Validation:
                                      • Only during data entry
                                      Storage:
                                      • Repetitions: 1
                                      • Indexing: None
                                      • Automatically create indexes as needed
                                      • Index Language: German
                                          VersionInfoNormal, TextAuto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Repetitions: 1
                                          • Indexing: None
                                          • Automatically create indexes as needed
                                          • Index Language: German
                                              EntryNormal, 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 - 8 Fields
                                                  Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
                                                  ImageNormal, BinaryAuto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                      XResolutionNormal, NumberAuto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German
                                                          YResolutionNormal, NumberAuto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Repetitions: 1
                                                          • Indexing: None
                                                          • Automatically create indexes as needed
                                                          • Index Language: German
                                                              ImageWidthNormal, NumberAuto-Enter:
                                                              • Allow editing
                                                              Validation:
                                                              • Only during data entry
                                                              Storage:
                                                              • Repetitions: 1
                                                              • Indexing: None
                                                              • Automatically create indexes as needed
                                                              • Index Language: German
                                                                  ImageHeightNormal, NumberAuto-Enter:
                                                                  • Allow editing
                                                                  Validation:
                                                                  • Only during data entry
                                                                  Storage:
                                                                  • Repetitions: 1
                                                                  • Indexing: None
                                                                  • Automatically create indexes as needed
                                                                  • Index Language: German
                                                                      SamplesPerPixelNormal, NumberAuto-Enter:
                                                                      • Allow editing
                                                                      Validation:
                                                                      • Only during data entry
                                                                      Storage:
                                                                      • Repetitions: 1
                                                                      • Indexing: None
                                                                      • Automatically create indexes as needed
                                                                      • Index Language: German
                                                                          BitsPerPixelNormal, NumberAuto-Enter:
                                                                          • Allow editing
                                                                          Validation:
                                                                          • Only during data entry
                                                                          Storage:
                                                                          • Repetitions: 1
                                                                          • Indexing: None
                                                                          • Automatically create indexes as needed
                                                                          • Index Language: German
                                                                              TimeStampNormal, TimestampAuto-Enter:
                                                                              • Creation timestamp
                                                                              • Allow editing
                                                                              Validation:
                                                                              • Only during data entry
                                                                              Storage:
                                                                              • Repetitions: 1
                                                                              • Indexing: None
                                                                              • Automatically create indexes as needed
                                                                              • Index Language: German

                                                                                    Layout Objects: Twain

                                                                                    Regular Fields

                                                                                    Field Name: Twain::Manufacturer
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 72 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 86 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: Twain::ProductFamily
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 90 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 104 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: Twain::ProductName
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 108 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 122 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: Twain::SupportedGroups
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 126 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 140 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: Twain::ProtocolMajor
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 144 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 158 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: Twain::Id
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 162 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 176 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: Twain::VersionMajorNum
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 180 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 194 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: Twain::VersionMinorNum
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 198 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 212 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: Twain::VersionLanguage
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 216 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 230 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: Twain::VersionCountry
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 234 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 248 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: Twain::VersionInfo
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 252 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 266 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: Twain::Entry
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 54 pt
                                                                                    • Left: 138 pt
                                                                                    • Bottom: 68 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: Find Devices
                                                                                      Additional Properties:
                                                                                    • Change to hand cursor over button
                                                                                    • Rectangular
                                                                                    • Top: 12 pt
                                                                                    • Left: 240 pt
                                                                                    • Bottom: 37 pt
                                                                                    • Right: 343 pt
                                                                                    • Anchoring: Left, Top
                                                                                    Perform Script [ “FindDevices” ]

                                                                                    Scripts:


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

                                                                                    Scripts:


                                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                                      Type:
                                                                                    • Text: Get Current Device
                                                                                      Additional Properties:
                                                                                    • Change to hand cursor over button
                                                                                    • Rectangular
                                                                                    • Top: 12 pt
                                                                                    • Left: 358 pt
                                                                                    • Bottom: 37 pt
                                                                                    • Right: 483 pt
                                                                                    • Anchoring: Left, Top
                                                                                    Perform Script [ “GetCurrentDevice” ]

                                                                                    Scripts:


                                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                                      Type:
                                                                                    • Text: Get Default Device
                                                                                      Additional Properties:
                                                                                    • Change to hand cursor over button
                                                                                    • Rectangular
                                                                                    • Top: 12 pt
                                                                                    • Left: 496 pt
                                                                                    • Bottom: 37 pt
                                                                                    • Right: 621 pt
                                                                                    • Anchoring: Left, Top
                                                                                    Perform Script [ “GetCurrentDevice” ]

                                                                                    Scripts:


                                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                                      Type:
                                                                                    • Text: Select This Source
                                                                                      Additional Properties:
                                                                                    • Change to hand cursor over button
                                                                                    • Rectangular
                                                                                    • Top: 60 pt
                                                                                    • Left: 424 pt
                                                                                    • Bottom: 85 pt
                                                                                    • Right: 549 pt
                                                                                    • Anchoring: Left, Top
                                                                                    Perform Script [ “SetCurrentDevice” ]

                                                                                    Scripts:


                                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                                      Type:
                                                                                    • Text: Select Source Dialog
                                                                                      Additional Properties:
                                                                                    • Change to hand cursor over button
                                                                                    • Rectangular
                                                                                    • Top: 13 pt
                                                                                    • Left: 636 pt
                                                                                    • Bottom: 38 pt
                                                                                    • Right: 785 pt
                                                                                    • Anchoring: Left, Top
                                                                                    Perform Script [ “SelectSource” ]

                                                                                    Scripts:


                                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                                      Type:
                                                                                    • Text: Acquire
                                                                                      Additional Properties:
                                                                                    • Change to hand cursor over button
                                                                                    • Rectangular
                                                                                    • Top: 13 pt
                                                                                    • Left: 804 pt
                                                                                    • Bottom: 38 pt
                                                                                    • Right: 953 pt
                                                                                    • Anchoring: Left, Top
                                                                                    Perform Script [ “Acquire” ]

                                                                                    Scripts:


                                                                                    Layout Objects: Images

                                                                                    Regular Fields

                                                                                    Field Name: Images::Image
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 66 pt
                                                                                    • Left: 360 pt
                                                                                    • Bottom: 503 pt
                                                                                    • Right: 973 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::XResolution
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 66 pt
                                                                                    • Left: 102 pt
                                                                                    • Bottom: 81 pt
                                                                                    • Right: 355 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: Images::YResolution
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 84 pt
                                                                                    • Left: 102 pt
                                                                                    • Bottom: 99 pt
                                                                                    • Right: 355 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: Images::ImageWidth
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 102 pt
                                                                                    • Left: 102 pt
                                                                                    • Bottom: 117 pt
                                                                                    • Right: 355 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: Images::ImageHeight
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 120 pt
                                                                                    • Left: 102 pt
                                                                                    • Bottom: 135 pt
                                                                                    • Right: 355 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: Images::SamplesPerPixel
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 138 pt
                                                                                    • Left: 102 pt
                                                                                    • Bottom: 153 pt
                                                                                    • Right: 355 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: Images::BitsPerPixel
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 156 pt
                                                                                    • Left: 102 pt
                                                                                    • Bottom: 171 pt
                                                                                    • Right: 355 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: Images::TimeStamp
                                                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                                                    • Top: 174 pt
                                                                                    • Left: 102 pt
                                                                                    • Bottom: 189 pt
                                                                                    • Right: 355 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: Select Source Dialog
                                                                                      Additional Properties:
                                                                                    • Change to hand cursor over button
                                                                                    • Rectangular
                                                                                    • Top: 12 pt
                                                                                    • Left: 13 pt
                                                                                    • Bottom: 37 pt
                                                                                    • Right: 162 pt
                                                                                    • Anchoring: Left, Top
                                                                                    Perform Script [ “SelectSource” ]

                                                                                    Scripts:


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

                                                                                    Scripts:


                                                                                    Button PropertiesCoordinatesScript/Script Step
                                                                                      Type:
                                                                                    • Text: Acquire without GUI
                                                                                      Additional Properties:
                                                                                    • Change to hand cursor over button
                                                                                    • Rectangular
                                                                                    • Top: 12 pt
                                                                                    • Left: 343 pt
                                                                                    • Bottom: 37 pt
                                                                                    • Right: 492 pt
                                                                                    • Anchoring: Left, Top
                                                                                    Perform Script [ “AcquireNoGUI”; Parameter: 1 ]

                                                                                    Scripts:


                                                                                    Script Hierarchy

                                                                                    FindDevices
                                                                                    InitTwain
                                                                                    GotImage
                                                                                    GetCurrentDevice
                                                                                    SetCurrentDevice
                                                                                    GetDefaultCurrentDevice
                                                                                    SelectSource
                                                                                    Acquire
                                                                                    AcquireFiles
                                                                                    AcquireNoGUI
                                                                                    Show Files after Acquire

                                                                                    Next Script: [InitTwain]
                                                                                    Script NameFindDevices
                                                                                    Run script with full access privilegesOff
                                                                                    Include In MenuYes
                                                                                    Layouts that use this script
                                                                                    Scripts that use this script
                                                                                      Script Definition
                                                                                      Script Steps
                                                                                      • Delete All Records [ No dialog ]
                                                                                      • Set Variable [ $count; Value:MBS("Twain.GetDSIdentitiesCount") ]
                                                                                      • If [ GetAsNumber($count)>0 ]
                                                                                      • Set Variable [ $index; Value:1 ]
                                                                                      • Loop
                                                                                      • New Record/Request
                                                                                      • Set Field [ Twain::Entry; "Device " & $index & " of " & $count ]
                                                                                      • Set Field [ Twain::Manufacturer; MBS("Twain.GetDSIdentity"; $index; "Manufacturer") ]
                                                                                      • Set Field [ Twain::ProductFamily; MBS("Twain.GetDSIdentity"; $index; "ProductFamily") ]
                                                                                      • Set Field [ Twain::ProductName; MBS("Twain.GetDSIdentity"; $index; "ProductName") ]
                                                                                      • Set Field [ Twain::SupportedGroups; MBS("Twain.GetDSIdentity"; $index; "SupportedGroups") ]
                                                                                      • Set Field [ Twain::ProtocolMajor; MBS("Twain.GetDSIdentity"; $index; "ProtocolMajor") ]
                                                                                      • Set Field [ Twain::Id; MBS("Twain.GetDSIdentity"; $index; "Id") ]
                                                                                      • Set Field [ Twain::VersionMajorNum; MBS("Twain.GetDSIdentity"; $index; "VersionMajorNum") ]
                                                                                      • Set Field [ Twain::VersionMinorNum; MBS("Twain.GetDSIdentity"; $index; "VersionMinorNum") ]
                                                                                      • Set Field [ Twain::VersionLanguage; MBS("Twain.GetDSIdentity"; $index; "VersionLanguage") ]
                                                                                      • Set Field [ Twain::VersionCountry; MBS("Twain.GetDSIdentity"; $index; "VersionCountry") ]
                                                                                      • Set Field [ Twain::VersionInfo; MBS("Twain.GetDSIdentity"; $index; "VersionInfo") ]
                                                                                      • Commit Records/Requests [ No dialog ]
                                                                                      • Exit Loop If [ $count = $index ]
                                                                                      • Set Variable [ $index; Value:$index +1 ]
                                                                                      • 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: [FindDevices]Next Script: [GotImage]
                                                                                              Script NameInitTwain
                                                                                              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("Twain.Initialize"; "USA"; "ENGLISH") ]
                                                                                                • Show Custom Dialog [ Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                • Set Variable [ $r; Value:MBS("Twain.SetNotificationScript"; Get(FileName); "GotImage") ]
                                                                                                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: [InitTwain]Next Script: [GetCurrentDevice]
                                                                                                              Script NameGotImage
                                                                                                              Run script with full access privilegesOff
                                                                                                              Include In MenuNo
                                                                                                              Layouts that use this script
                                                                                                                Scripts that use this script
                                                                                                                  Script Definition
                                                                                                                  Script Steps
                                                                                                                  • Go to Layout [ “Images” (Images) ]
                                                                                                                  • Go to Related Record [ From table: “Images”; Using layout: “Images” (Images) ]
                                                                                                                  • Loop
                                                                                                                  • New Record/Request
                                                                                                                  • Set Field [ Images::XResolution; MBS("Twain.ImageInfo"; "XResolution") ]
                                                                                                                  • Set Field [ Images::YResolution; MBS("Twain.ImageInfo"; "YResolution") ]
                                                                                                                  • Set Field [ Images::ImageWidth; MBS("Twain.ImageInfo"; "ImageWidth") ]
                                                                                                                  • Set Field [ Images::ImageHeight; MBS("Twain.ImageInfo"; "ImageHeight") ]
                                                                                                                  • Set Field [ Images::SamplesPerPixel; MBS("Twain.ImageInfo"; "SamplesPerPixel") ]
                                                                                                                  • Set Field [ Images::BitsPerPixel; MBS("Twain.ImageInfo"; "BitsPerPixel") ]
                                                                                                                  • Set Variable [ $img; Value:MBS("Twain.CurrentImage") ]
                                                                                                                  • If [ GetAsNumber ( $img ) >0 ]
                                                                                                                  • Set Field [ Images::Image; MBS("GMImage.WriteToPNGContainer"; $img) ]
                                                                                                                  • Set Variable [ $r; Value:MBS("GMImage.Destroy"; $img) ]
                                                                                                                  • End If
                                                                                                                  • Commit Records/Requests [ No dialog ]
                                                                                                                  • Set Variable [ $r; Value:MBS("Twain.GetImageCount") ]
                                                                                                                  • Exit Loop If [ $r = 0 ]
                                                                                                                  • End Loop
                                                                                                                  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: [GotImage]Next Script: [SetCurrentDevice]
                                                                                                                        Script NameGetCurrentDevice
                                                                                                                        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: [GetCurrentDevice]Next Script: [GetDefaultCurrentDevice]
                                                                                                                                        Script NameSetCurrentDevice
                                                                                                                                        Run script with full access privilegesOff
                                                                                                                                        Include In MenuYes
                                                                                                                                        Layouts that use this script
                                                                                                                                        Scripts that use this script
                                                                                                                                          Script Definition
                                                                                                                                          Script Steps
                                                                                                                                          • Show Custom Dialog [ Title: "Set Current Data Source"; Message: MBS("Twain.SelectDSIdentity"; Twain::ProductName); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, 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

                                                                                                                                                  Previous Script: [SetCurrentDevice]Next Script: [SelectSource]
                                                                                                                                                  Script NameGetDefaultCurrentDevice
                                                                                                                                                  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: [GetDefaultCurrentDevice]Next Script: [Acquire]
                                                                                                                                                                    Script NameSelectSource
                                                                                                                                                                    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("Twain.SelectDS") ]
                                                                                                                                                                      • If [ $r ≠ "OK" ]
                                                                                                                                                                      • Show Custom Dialog [ Title: "Error Message"; Message: $r; Default Button: “OK”, Commit: “No”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                                                                                      • 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: [SelectSource]Next Script: [AcquireFiles]
                                                                                                                                                                                    Script NameAcquire
                                                                                                                                                                                    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: [Acquire]Next Script: [AcquireNoGUI]
                                                                                                                                                                                                    Script NameAcquireFiles
                                                                                                                                                                                                    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: [AcquireFiles]Next Script: [Show Files after Acquire]
                                                                                                                                                                                                                      Script NameAcquireNoGUI
                                                                                                                                                                                                                      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("Twain.SetAutofeed"; 1) ]
                                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("Twain.SetFeededEnabled"; 1) ]
                                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("Twain.SetCloseAfterTransfer"; 1) ]
                                                                                                                                                                                                                        • Set Variable [ $r; Value:MBS("Twain.Acquire"; 0; 0) ]
                                                                                                                                                                                                                        • If [ $r ≠ "OK" ]
                                                                                                                                                                                                                        • Show Custom Dialog [ Title: "Error Message"; Message: $r; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                                                                                                                                                                                        • 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: [AcquireNoGUI]
                                                                                                                                                                                                                                      Script NameShow Files after Acquire
                                                                                                                                                                                                                                      Run script with full access privilegesOff
                                                                                                                                                                                                                                      Include In MenuYes
                                                                                                                                                                                                                                      Layouts that use this script
                                                                                                                                                                                                                                        Scripts that use this script
                                                                                                                                                                                                                                          Script Definition
                                                                                                                                                                                                                                          Script Steps
                                                                                                                                                                                                                                          • Show Custom Dialog [ Message: MBS("Twain.GetFilePaths"); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, 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: Twain

                                                                                                                                                                                                                                                        Used functions:




                                                                                                                                                                                                                                                        Links
                                                                                                                                                                                                                                                        MBS Xojo Plugins