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

MBS FileMaker Plugin Example Databases

RunScript

All examples are included with download of MBS FileMaker Plugin.

RunScript.fmp12

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

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
RunScript
4 fields defined, 1 record
RunScript

Fields

Table Name: RunScript - 4 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
ScriptDirectNormal, TimestampAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      ScriptLaterNormal, TimestampAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ScriptIdleNormal, TimestampAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              ComputerIdleNormal, NumberAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German

                  Layout Objects: RunScript

                  Regular Fields

                  Field Name: RunScript::ScriptDirect
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 24 pt
                  • Left: 138 pt
                  • Bottom: 38 pt
                  • Right: 379 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: RunScript::ScriptLater
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 42 pt
                  • Left: 138 pt
                  • Bottom: 56 pt
                  • Right: 379 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: RunScript::ScriptIdle
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 60 pt
                  • Left: 138 pt
                  • Bottom: 74 pt
                  • Right: 379 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: RunScript::ComputerIdle
                  Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                  • Top: 114 pt
                  • Left: 138 pt
                  • Bottom: 128 pt
                  • Right: 217 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: Run Script Now
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rectangular
                  • Top: 24 pt
                  • Left: 396 pt
                  • Bottom: 49 pt
                  • Right: 523 pt
                  • Anchoring: Left, Top
                  Perform Script [ “RunScriptDirect” ]

                  Scripts:


                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: Run Script Later
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rectangular
                  • Top: 54 pt
                  • Left: 396 pt
                  • Bottom: 79 pt
                  • Right: 523 pt
                  • Anchoring: Left, Top
                  Perform Script [ “RunScriptLater” ]

                  Scripts:


                  Button PropertiesCoordinatesScript/Script Step
                    Type:
                  • Text: Run Script on Idle
                    Additional Properties:
                  • Change to hand cursor over button
                  • Rectangular
                  • Top: 84 pt
                  • Left: 396 pt
                  • Bottom: 109 pt
                  • Right: 523 pt
                  • Anchoring: Left, Top
                  Perform Script [ “RunScriptIdle” ]

                  Scripts:


                  Script Hierarchy

                  ScriptDirect
                  ScriptLater
                  ScriptIdle
                  RunScriptDirect
                  RunScriptLater
                  RunScriptIdle
                  Update
                  Start

                  Next Script: [ScriptLater]
                  Script NameScriptDirect
                  Run script with full access privilegesOff
                  Include In MenuYes
                  Layouts that use this script
                    Scripts that use this script
                      Script Definition
                      Script Steps
                      • Set Field [ RunScript::ScriptDirect; Get ( CurrentHostTimestamp ) ]
                      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: [ScriptDirect]Next Script: [ScriptIdle]
                              Script NameScriptLater
                              Run script with full access privilegesOff
                              Include In MenuYes
                              Layouts that use this script
                                Scripts that use this script
                                  Script Definition
                                  Script Steps
                                  • Set Field [ RunScript::ScriptLater; Get ( CurrentHostTimestamp ) ]
                                  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: [ScriptLater]Next Script: [RunScriptDirect]
                                          Script NameScriptIdle
                                          Run script with full access privilegesOff
                                          Include In MenuYes
                                          Layouts that use this script
                                            Scripts that use this script
                                              Script Definition
                                              Script Steps
                                              • Set Field [ RunScript::ScriptIdle; Get ( CurrentHostTimestamp ) ]
                                              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: [ScriptIdle]Next Script: [RunScriptLater]
                                                      Script NameRunScriptDirect
                                                      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( "FM.RunScript"; Get(FileName); "ScriptDirect" ) ]
                                                        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: [RunScriptDirect]Next Script: [RunScriptIdle]
                                                                      Script NameRunScriptLater
                                                                      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( "FM.RunScriptLater"; 10; Get(FileName); "ScriptLater" ) ]
                                                                        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: [RunScriptLater]Next Script: [Update]
                                                                                      Script NameRunScriptIdle
                                                                                      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( "FM.RunScriptIdle"; 10; Get(FileName); "ScriptIdle" ) ]
                                                                                        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: [RunScriptIdle]Next Script: [Start]
                                                                                                      Script NameUpdate
                                                                                                      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: [Update]
                                                                                                                Script NameStart
                                                                                                                Run script with full access privilegesOff
                                                                                                                Include In MenuYes
                                                                                                                Layouts that use this script
                                                                                                                  Scripts that use this script
                                                                                                                    Script Definition
                                                                                                                    Script Steps
                                                                                                                    • Install OnTimer Script [ “Update”; Interval: ,5 ]
                                                                                                                    • Set Field [ RunScript::ScriptDirect; "" ]
                                                                                                                    • Set Field [ RunScript::ScriptLater; "" ]
                                                                                                                    • Set Field [ RunScript::ScriptIdle; "" ]
                                                                                                                    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: RunScript

                                                                                                                          Used functions: