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
Tables 1
Relationships 0
Layouts 1
Scripts 1
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Enlightened
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields Off
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

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

Fields

Table Name: Split Multi Tiff - 2 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
InputFile Normal, Binary Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
      OutputImage Normal, Binary Auto-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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Field Format Field Behavior Quick 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 Properties Coordinates Script/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 Properties Coordinates Script/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 Name Split
          Run script with full access privileges Off
          Siri Shortcut Visible Off
          Include In Menu Yes
          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 [ Flush: Always ]
            • #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: