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

MBS FileMaker Plugin Example Databases

RunTask

All examples are included with download of MBS FileMaker Plugin.

RunTask.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts2
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
RunTask
2 fields defined, 1 record
RunTask

Fields

Table Name: RunTask - 2 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
InputFilePathNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      TextNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German

          Layout Objects: RunTask

          Regular Fields

          Field Name: RunTask::InputFilePath
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 24 pt
          • Left: 138 pt
          • Bottom: 38 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: RunTask::Text
          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
          • Top: 42 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

          Group Buttons

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Set Path
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 24 pt
          • Left: 414 pt
          • Bottom: 49 pt
          • Right: 547 pt
          • Anchoring: Left, Top
          Perform Script [ “SetPath” ]

          Scripts:


          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Run ExtractText
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 60 pt
          • Left: 414 pt
          • Bottom: 85 pt
          • Right: 547 pt
          • Anchoring: Left, Top
          Perform Script [ “Run” ]

          Scripts:


          Script Hierarchy

          Run
          SetPath

          Next Script: [SetPath]
          Script NameRun
          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( "Files.MoveToTrash"; "/tmp/text.txt") ]
            • Set Variable [ $pfad; Value:Get ( FilePath ) ]
            • Set Variable [ $pfad; Value:Substitute ( $pfad ; Get(FileName) & ".fp7" ; "ExtractText/ExtractText" ) ]
            • Set Variable [ $pfad; Value:Substitute ( $pfad ; Get(FileName) & ".fmp12" ; "ExtractText/ExtractText" ) ]
            • Set Variable [ $pfad; Value:MBS( "Path.FilemakerPathToNativePath"; $Pfad ) ]
            • Set Variable [ $r; Value:MBS( "RunTask.NewTask" ) ]
            • Set Variable [ $r; Value:MBS( "RunTask.SetLaunchPath"; $Pfad & "32" ) ]
            • Set Variable [ $r; Value:MBS( "RunTask.SetArguments"; RunTask::InputFilePath; "/tmp/text.txt" ) ]
            • Set Variable [ $r; Value:MBS( "RunTask.Launch") ]
            • Loop
            • Pause/Resume Script [ Duration (seconds): ,1 ]
            • Exit Loop If [ MBS( "RunTask.IsRunning" ) ≠ 1 ]
            • End Loop
            • Set Variable [ $r; Value:MBS( "RunTask.NewTask" ) ]
            • Set Variable [ $r; Value:MBS( "RunTask.SetLaunchPath"; $Pfad & "64" ) ]
            • Set Variable [ $r; Value:MBS( "RunTask.SetArguments"; RunTask::InputFilePath; "/tmp/text.txt" ) ]
            • Set Variable [ $r; Value:MBS( "RunTask.Launch") ]
            • Loop
            • Pause/Resume Script [ Duration (seconds): ,1 ]
            • Exit Loop If [ MBS( "RunTask.IsRunning" ) ≠ 1 ]
            • End Loop
            • Pause/Resume Script [ Duration (seconds): ,1 ]
            • Set Field [ RunTask::Text; MBS( "String.ReadTextFile"; "/tmp/text.txt"; "UTF-8" ) ]
            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: [Run]
                    Script NameSetPath
                    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 [ $pfad; Value:Get ( FilePath ) ]
                      • Set Variable [ $pfad; Value:Substitute ( $pfad ; Get(FileName) & ".fp7" ; "Test.pages" ) ]
                      • Set Variable [ $pfad; Value:Substitute ( $pfad ; Get(FileName) & ".fmp12" ; "Test.pages" ) ]
                      • Set Field [ RunTask::InputFilePath; MBS( "Path.FilemakerPathToNativePath"; $Pfad ) ]
                      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: RunTask

                              Used functions: