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

MBS FileMaker Plugin Example Databases

Split Multi Tiff

All examples are included with download of MBS FileMaker Plugin.

Split Multi Tiff.fmp12

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

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
Split Multi Tiff
2 fields defined, 0 record
Split Multi Tiff

Fields

Table Name: Split Multi Tiff - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
InputFileNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
      OutputImageNormal, BinaryAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1

          Layout Objects: Split Multi Tiff

          Regular Fields

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

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

          Buttons

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Split tiff
          • Top: 122 pt
          • Left: 416 pt
          • Bottom: 151 pt
          • Right: 516 pt
          • Anchoring: Left, Top
          Perform Script [ “Split” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Delete images
          • Top: 159 pt
          • Left: 416 pt
          • Bottom: 188 pt
          • Right: 516 pt
          • Anchoring: Left, Top
          Delete All Records [ No dialog ]

          Script Hierarchy

          Split

          Script NameSplit
          Run script with full access privilegesOff
          Include In MenuYes
          Layouts that use this script
          Scripts that use this script
            Script Definition
            Script Steps
            • # We load the single images and save each frame in a record
            • # load image
            • Set Variable [ $list; Value:MBS("GMImage.NewImagesFromContainer"; Split Multi Tiff::InputFile) ]
            • #In case of error exit the script and show dialog
            • If [ MBS("Iserror") ]
            • Exit Script [ Result: $list ]
            • Show Custom Dialog [ ]
            • End If
            • # start loop
            • #get the count of frames
            • Set Variable [ $count; Value:ValueCount ( $list ) ]
            • Set Variable [ $index; Value:1 ]
            • Loop
            • #get current element
            • Set Variable [ $image; Value:GetValue($list; $index) ]
            • #we need for each image a new record
            • New Record/Request
            • #Writes the picture in TIFF format to a container
            • Set Field [ Split Multi Tiff::OutputImage; MBS( "GMImage.WriteToTiffContainer"; $image; "test.tif" ) ]
            • Commit Records/Requests [ Skip data entry validation; No dialog ]
            • #release image
            • Set Variable [ $r; Value:MBS("GMImage.Free"; $image) ]
            • # next loop
            • Set Variable [ $index; Value:$index + 1 ]
            • Exit Loop If [ $index > $count ]
            • 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

                    Download example: Split Multi Tiff

                    Used functions: