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

MBS FileMaker Plugin Example Databases

AVRecorder

All examples are included with download of MBS FileMaker Plugin.

AVRecorder.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: InitScript
OnLastWindowCloseScript: Shutdown
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
AVRecorder
3 fields defined, 1 record
AVRecorder

Fields

Table Name: AVRecorder - 3 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
SessionNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      FilePathNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          ImageNormal, BinaryAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1

              Layout Objects: AVRecorder

              Regular Fields

              Field Name: AVRecorder::Session
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 54 pt
              • Left: 138 pt
              • Bottom: 75 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: AVRecorder::FilePath
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 78 pt
              • Left: 138 pt
              • Bottom: 99 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: AVRecorder::Image
              Field PropertiesCoordinatesField FormatField BehaviorQuick Find
              • Top: 59 pt
              • Left: 624 pt
              • Bottom: 302 pt
              • Right: 941 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

              Group Buttons

              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Set Video Device
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 78 pt
              • Left: 408 pt
              • Bottom: 109 pt
              • Right: 553 pt
              • Anchoring: Left, Top
              Perform Script [ “Set Video Device” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Set Audio Device
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 116 pt
              • Left: 408 pt
              • Bottom: 148 pt
              • Right: 553 pt
              • Anchoring: Left, Top
              Perform Script [ “Set Audio Device” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Start Recording
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 153 pt
              • Left: 408 pt
              • Bottom: 184 pt
              • Right: 553 pt
              • Anchoring: Left, Top
              Perform Script [ “Start Recording” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Stop Recording
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 190 pt
              • Left: 408 pt
              • Bottom: 221 pt
              • Right: 553 pt
              • Anchoring: Left, Top
              Perform Script [ “Stop Recording” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Start Preview
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 227 pt
              • Left: 408 pt
              • Bottom: 258 pt
              • Right: 553 pt
              • Anchoring: Left, Top
              Perform Script [ “Start Preview” ]

              Scripts:


              Button PropertiesCoordinatesScript/Script Step
                Type:
              • Text: Take Picture
                Additional Properties:
              • Change to hand cursor over button
              • Rectangular
              • Top: 264 pt
              • Left: 408 pt
              • Bottom: 295 pt
              • Right: 553 pt
              • Anchoring: Left, Top
              Perform Script [ “Take Picture” ]

              Scripts:


              Script Hierarchy

              InitScript
              Set Audio Device
              Set Video Device
              Start Recording
              Stop Recording
              Shutdown
              Start Preview
              Take Picture

              Next Script: [Set Audio Device]
              Script NameInitScript
              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: [InitScript]Next Script: [Set Video Device]
                          Script NameSet Audio Device
                          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("AVRecorder.SetAudioDevice"; AVRecorder::Session; 0) ]
                            • Show Custom Dialog [ Title: "Audio Device"; Message: MBS("AVRecorder.GetAudioDevice"; AVRecorder::Session); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                            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: [Set Audio Device]Next Script: [Start Recording]
                                    Script NameSet Video Device
                                    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("AVRecorder.SetVideoDevice"; AVRecorder::Session; 0) ]
                                      • Show Custom Dialog [ Title: "Video Device"; Message: MBS("AVRecorder.GetVideoDevice"; AVRecorder::Session); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                      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: [Set Video Device]Next Script: [Stop Recording]
                                              Script NameStart Recording
                                              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("AVRecorder.SetFilePath"; AVRecorder::Session; AVRecorder::FilePath) ]
                                                • If [ MBS("IsError") ]
                                                • Show Custom Dialog [ Title: "Error"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                • Exit Script [ ]
                                                • End If
                                                • Set Variable [ $r; Value:MBS("AVRecorder.StartRecording"; AVRecorder::Session) ]
                                                • If [ MBS("IsError") ]
                                                • Show Custom Dialog [ Title: "Error"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                • Exit Script [ ]
                                                • End If
                                                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: [Start Recording]Next Script: [Shutdown]
                                                        Script NameStop Recording
                                                        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: [Stop Recording]Next Script: [Start Preview]
                                                                  Script NameShutdown
                                                                  Run script with full access privilegesOff
                                                                  Include In MenuYes
                                                                  Layouts that use this script
                                                                    Scripts that use this script
                                                                      Script Definition
                                                                      Script Steps
                                                                      • If [ AVRecorder::Session ≠ "" ]
                                                                      • Set Variable [ $r; Value:MBS("AVRecorder.Release"; AVRecorder::Session) ]
                                                                      • Set Field [ AVRecorder::Session; "" ]
                                                                      • End If
                                                                      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: [Shutdown]Next Script: [Take Picture]
                                                                              Script NameStart Preview
                                                                              Run script with full access privilegesOff
                                                                              Include In MenuYes
                                                                              Layouts that use this script
                                                                              Scripts that use this script
                                                                                Script Definition
                                                                                Script Steps
                                                                                • #make sure FileMaker has enough time to redraw the layout
                                                                                • Pause/Resume Script [ Duration (seconds): ,3 ]
                                                                                • #add preview based on placeholder control
                                                                                • // Set Variable [ $r; Value:MBS("AVRecorder.AddPreviewToWindow"; AVRecorder::Session; Get(WindowName); 50; 150; 320; 240) ]
                                                                                • Set Variable [ $r; Value:MBS("AVRecorder.AddPreviewWithControl"; AVRecorder::Session; Get(WindowName); "Preview") ]
                                                                                • If [ MBS("IsError") ]
                                                                                • Show Custom Dialog [ Title: "Failed to add preview control"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                • Exit Script [ ]
                                                                                • End If
                                                                                • #start live preview
                                                                                • Set Variable [ $r; Value:MBS("AVRecorder.StartPreview"; AVRecorder::Session) ]
                                                                                • If [ MBS("IsError") ]
                                                                                • Show Custom Dialog [ Title: "Failed to start preview"; Message: $r; Default Button: “OK”, Commit: “Yes” ]
                                                                                • Exit Script [ ]
                                                                                • End If
                                                                                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: [Start Preview]
                                                                                        Script NameTake Picture
                                                                                        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

                                                                                                  Download example: AVRecorder

                                                                                                  Used functions: