MBS FileMaker Plugin Example Databases

Directory Watcher

All examples are included with download of MBS FileMaker Plugin.

Directory Watcher.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts3
Value Lists0
Custom Functions0
Custom Menus0
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
Directory Watcher
3 fields defined, 9 records
Directory Watcher

Fields

Table Name: Directory Watcher - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
DirectoryNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Global
  • Repetitions: 1
  • Index Language: German
      PathNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ActionNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German

              Layout Objects: Directory Watcher

              Regular Fields

              Field Name: Directory Watcher::Directory
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 14 pt
              • Left: 142 pt
              • Bottom: 36 pt
              • Right: 595 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: Default for Data Type
              • Go to next field using: Tab key
              No

              Field Name: Directory Watcher::Path
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 60 pt
              • Left: 42 pt
              • Bottom: 82 pt
              • Right: 495 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: Default for Data Type
              • Go to next field using: Tab key
              Yes

              Field Name: Directory Watcher::Action
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 60 pt
              • Left: 545 pt
              • Bottom: 82 pt
              • Right: 798 pt
              • Anchoring: Left, Top
              Field Format:
              • Edit Box
              Field Behavior:
              • Allow field to be entered: In Find mode, In Browse mode
              • Touch keyboard type: Default for Data Type
              • Go to next field using: Tab key
              Yes

              Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Set Desktop
              • Top: 16 pt
              • Left: 612 pt
              • Bottom: 39 pt
              • Right: 700 pt
              • Anchoring: Left, Top
              Perform Script [ “SetDesktop” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Watch
              • Top: 16 pt
              • Left: 717 pt
              • Bottom: 39 pt
              • Right: 805 pt
              • Anchoring: Left, Top
              Perform Script [ “Initialize” ]

              Scripts:


              Script Hierarchy

              SetDesktop
              Initialize
              WatcherScript

              Next Script: [Initialize]
              Script NameSetDesktop
              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: [SetDesktop]Next Script: [WatcherScript]
                        Script NameInitialize
                        Run script with full access privilegesOff
                        Include In MenuYes
                        Layouts that use this script
                        Scripts that use this script
                          Script Definition
                          Script Steps
                          Fields used in this script
                          Scripts used in this script
                            Layouts used in this script
                            Tables used in this script
                            Table occurrences used by this script
                            Custom Functions used by this script
                              Custom menu set used by this script

                                Previous Script: [Initialize]
                                Script NameWatcherScript
                                Run script with full access privilegesOff
                                Include In MenuYes
                                Layouts that use this script
                                  Scripts that use this script
                                    Script Definition
                                    Script Steps
                                    • #get ID for directory watcher
                                    • Set Variable [ $Watcher; Value:Get(ScriptParameter) ]
                                    • #do we have events?
                                    • Set Variable [ $count; Value:MBS("DirectoryWatcher.ChangeCount"; $Watcher) ]
                                    • If [ $count = 0 or MBS("IsError") ]
                                    • Exit Script [ ]
                                    • End If
                                    • Go to Layout [ “Directory Watcher” ]
                                    • Loop
                                    • #process event
                                    • Set Variable [ $item; Value:MBS("DirectoryWatcher.NextChange"; $Watcher) ]
                                    • Set Variable [ $path; Value:GetValue($item; 1) ]
                                    • Set Variable [ $action; Value:GetValue($item; 3) ]
                                    • New Record/Request
                                    • Set Field [ Directory Watcher::Path; $path ]
                                    • Set Field [ Directory Watcher::Action; $action ]
                                    • Commit Records/Requests [ No dialog ]
                                    • #next
                                    • Set Variable [ $count; Value:MBS("DirectoryWatcher.ChangeCount"; $Watcher) ]
                                    • Exit Loop If [ $count = 0 ]
                                    • End Loop
                                    • Go to Layout [ original layout ]
                                    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: Directory Watcher

                                          Used functions:




                                          Links
                                          MBS Xojo Plugins