MBS FileMaker Plugin Example Databases

AVAsset Export Session

All examples are included with download of MBS FileMaker Plugin.

AVAsset Export Session.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
OnFirstWindowOpenOff
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
AVAsset Export Session
12 fields defined, 1 record
AVAsset Export Session

Fields

Table Name: AVAsset Export Session - 12 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
Input File PathNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      Output File PathNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          AllExportPresetsNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
                OutputFileExtensionNormal, TextAuto-Enter:
                • Allow editing
                Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: German
                    StatusNormal, TextAuto-Enter:
                    • Allow editing
                    Validation:
                    • Only during data entry
                    Storage:
                    • Repetitions: 1
                    • Indexing: None
                    • Automatically create indexes as needed
                    • Index Language: German
                        ErrorNormal, TextAuto-Enter:
                        • Allow editing
                        Validation:
                        • Only during data entry
                        Storage:
                        • Repetitions: 1
                        • Indexing: None
                        • Automatically create indexes as needed
                        • Index Language: German
                            DurationNormal, TextAuto-Enter:
                            • Allow editing
                            Validation:
                            • Only during data entry
                            Storage:
                            • Repetitions: 1
                            • Indexing: None
                            • Automatically create indexes as needed
                            • Index Language: German
                                ProgressNormal, TextAuto-Enter:
                                • Allow editing
                                Validation:
                                • Only during data entry
                                Storage:
                                • Repetitions: 1
                                • Indexing: None
                                • Automatically create indexes as needed
                                • Index Language: German
                                    EstimatedOutputFileLengthNormal, TextAuto-Enter:
                                    • Allow editing
                                    Validation:
                                    • Only during data entry
                                    Storage:
                                    • Repetitions: 1
                                    • Indexing: None
                                    • Automatically create indexes as needed
                                    • Index Language: German
                                        SupportedFileTypesNormal, TextAuto-Enter:
                                        • Allow editing
                                        Validation:
                                        • Only during data entry
                                        Storage:
                                        • Repetitions: 1
                                        • Indexing: None
                                        • Automatically create indexes as needed
                                        • Index Language: German
                                            PresetNameNormal, TextAuto-Enter:
                                            • Allow editing
                                            Validation:
                                            • Only during data entry
                                            Storage:
                                            • Repetitions: 1
                                            • Indexing: None
                                            • Automatically create indexes as needed
                                            • Index Language: German
                                                OutputFileTypeNormal, TextAuto-Enter:
                                                • Allow editing
                                                Validation:
                                                • Only during data entry
                                                Storage:
                                                • Repetitions: 1
                                                • Indexing: None
                                                • Automatically create indexes as needed
                                                • Index Language: German

                                                    Layout Objects: AVAsset Export Session

                                                    Regular Fields

                                                    Field Name: AVAsset Export Session::Input File Path
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 138 pt
                                                    • Left: 168 pt
                                                    • Bottom: 152 pt
                                                    • Right: 421 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: AVAsset Export Session::Output File Path
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 360 pt
                                                    • Left: 168 pt
                                                    • Bottom: 374 pt
                                                    • Right: 421 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: AVAsset Export Session::AllExportPresets
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 54 pt
                                                    • Left: 168 pt
                                                    • Bottom: 134 pt
                                                    • Right: 421 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: AVAsset Export Session::OutputFileExtension
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 342 pt
                                                    • Left: 168 pt
                                                    • Bottom: 356 pt
                                                    • Right: 421 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: AVAsset Export Session::Status
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 414 pt
                                                    • Left: 162 pt
                                                    • Bottom: 428 pt
                                                    • Right: 415 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: AVAsset Export Session::Error
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 432 pt
                                                    • Left: 162 pt
                                                    • Bottom: 446 pt
                                                    • Right: 415 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: AVAsset Export Session::Duration
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 210 pt
                                                    • Left: 168 pt
                                                    • Bottom: 224 pt
                                                    • Right: 421 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: AVAsset Export Session::Progress
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 450 pt
                                                    • Left: 162 pt
                                                    • Bottom: 464 pt
                                                    • Right: 415 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: AVAsset Export Session::EstimatedOutputFileLength
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 228 pt
                                                    • Left: 168 pt
                                                    • Bottom: 242 pt
                                                    • Right: 421 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: AVAsset Export Session::SupportedFileTypes
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 246 pt
                                                    • Left: 168 pt
                                                    • Bottom: 308 pt
                                                    • Right: 421 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: AVAsset Export Session::PresetName
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 156 pt
                                                    • Left: 168 pt
                                                    • Bottom: 170 pt
                                                    • Right: 421 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: AVAsset Export Session::OutputFileType
                                                    Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                                                    • Top: 312 pt
                                                    • Left: 168 pt
                                                    • Bottom: 326 pt
                                                    • Right: 421 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: Query all Presets
                                                      Additional Properties:
                                                    • Change to hand cursor over button
                                                    • Rectangular
                                                    • Top: 54 pt
                                                    • Left: 426 pt
                                                    • Bottom: 79 pt
                                                    • Right: 553 pt
                                                    • Anchoring: Left, Top
                                                    Set Field [ AVAsset Export Session::AllExportPresets; MBS("AVExport.AllExportPresets") ]

                                                    Fields:


                                                    Button PropertiesCoordinatesScript/Script Step
                                                      Type:
                                                    • Text: Select Input File
                                                      Additional Properties:
                                                    • Change to hand cursor over button
                                                    • Rectangular
                                                    • Top: 138 pt
                                                    • Left: 426 pt
                                                    • Bottom: 163 pt
                                                    • Right: 553 pt
                                                    • Anchoring: Left, Top
                                                    Perform Script [ “SelectInputFile” ]

                                                    Scripts:


                                                    Button PropertiesCoordinatesScript/Script Step
                                                      Type:
                                                    • Text: Create Export Session
                                                      Additional Properties:
                                                    • Change to hand cursor over button
                                                    • Rectangular
                                                    • Top: 180 pt
                                                    • Left: 426 pt
                                                    • Bottom: 205 pt
                                                    • Right: 553 pt
                                                    • Anchoring: Left, Top
                                                    Perform Script [ “Create Session” ]

                                                    Scripts:


                                                    Button PropertiesCoordinatesScript/Script Step
                                                      Type:
                                                    • Text: Set Output File Type
                                                      Additional Properties:
                                                    • Change to hand cursor over button
                                                    • Rectangular
                                                    • Top: 312 pt
                                                    • Left: 426 pt
                                                    • Bottom: 337 pt
                                                    • Right: 553 pt
                                                    • Anchoring: Left, Top
                                                    Perform Script [ “Set OutputFileType” ]

                                                    Scripts:


                                                    Button PropertiesCoordinatesScript/Script Step
                                                      Type:
                                                    • Text: Save to Desktop
                                                      Additional Properties:
                                                    • Change to hand cursor over button
                                                    • Rectangular
                                                    • Top: 342 pt
                                                    • Left: 426 pt
                                                    • Bottom: 367 pt
                                                    • Right: 553 pt
                                                    • Anchoring: Left, Top
                                                    Perform Script [ “Set Desktop Output” ]

                                                    Scripts:


                                                    Button PropertiesCoordinatesScript/Script Step
                                                      Type:
                                                    • Text: Set Output File Path
                                                      Additional Properties:
                                                    • Change to hand cursor over button
                                                    • Rectangular
                                                    • Top: 372 pt
                                                    • Left: 426 pt
                                                    • Bottom: 397 pt
                                                    • Right: 553 pt
                                                    • Anchoring: Left, Top
                                                    Set Variable [ $r; Value:MBS( "AVExport.SetOutputPath"; $AVExport; AVAsset Export Session::Output File Path) ]

                                                    Fields:


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

                                                    Scripts:


                                                    Button PropertiesCoordinatesScript/Script Step
                                                      Type:
                                                    • Text: Cancel Export
                                                      Additional Properties:
                                                    • Change to hand cursor over button
                                                    • Rectangular
                                                    • Top: 444 pt
                                                    • Left: 426 pt
                                                    • Bottom: 469 pt
                                                    • Right: 553 pt
                                                    • Anchoring: Left, Top
                                                    Perform Script [ “Cancel Export” ]

                                                    Scripts:


                                                    Button PropertiesCoordinatesScript/Script Step
                                                      Type:
                                                    • Text: Release Session
                                                      Additional Properties:
                                                    • Change to hand cursor over button
                                                    • Rectangular
                                                    • Top: 492 pt
                                                    • Left: 426 pt
                                                    • Bottom: 517 pt
                                                    • Right: 553 pt
                                                    • Anchoring: Left, Top
                                                    Perform Script [ “Release Export Session” ]

                                                    Scripts:


                                                    Script Hierarchy

                                                    SelectInputFile
                                                    Create Session
                                                    Update Status
                                                    Set OutputFileType
                                                    Set Desktop Output
                                                    Start Export
                                                    Cancel Export
                                                    Release Export Session

                                                    Next Script: [Create Session]
                                                    Script NameSelectInputFile
                                                    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: [SelectInputFile]Next Script: [Update Status]
                                                              Script NameCreate Session
                                                              Run script with full access privilegesOff
                                                              Include In MenuYes
                                                              Layouts that use this script
                                                              Scripts that use this script
                                                                Script Definition
                                                                Script Steps
                                                                • If [ not IsEmpty($$AVExport) ]
                                                                • Show Custom Dialog [ Message: "We have a session already!?"; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                • Exit Script [ ]
                                                                • End If
                                                                • Set Variable [ $Asset; Value:MBS( "AVAsset.OpenFile"; AVAsset Export Session::Input File Path ) ]
                                                                • Set Variable [ $$AVExport; Value:MBS( "AVExport.ExportSession"; $Asset; AVAsset Export Session::PresetName ) ]
                                                                • If [ MBS("IsError") ]
                                                                • Set Variable [ $r; Value:MBS( "AVAsset.Release"; $Asset) ]
                                                                • Show Custom Dialog [ Title: "Failed to create export session"; Message: MBS("Text.RemovePrefix"; $$AVExport; "[MBS] "); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                • Exit Script [ ]
                                                                • End If
                                                                • Set Variable [ $r; Value:MBS( "AVAsset.Release"; $Asset) ]
                                                                • Set Field [ AVAsset Export Session::Duration; MBS( "AVExport.Duration"; $$AVExport ) ]
                                                                • Set Field [ AVAsset Export Session::SupportedFileTypes; MBS( "AVExport.SupportedFileTypes"; $$AVExport ) ]
                                                                • Set Field [ AVAsset Export Session::OutputFileExtension; MBS( "AVExport.OutputFileExtension"; $$AVExport ) ]
                                                                • Set Field [ AVAsset Export Session::EstimatedOutputFileLength; MBS( "AVExport.EstimatedOutputFileLength"; $$AVExport ) ]
                                                                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: [Create Session]Next Script: [Set OutputFileType]
                                                                        Script NameUpdate Status
                                                                        Run script with full access privilegesOff
                                                                        Include In MenuYes
                                                                        Layouts that use this script
                                                                          Scripts that use this script
                                                                          Script Definition
                                                                          Script Steps
                                                                          • If [ IsEmpty($$AVExport) ]
                                                                          • Set Field [ AVAsset Export Session::Progress; "" ]
                                                                          • Set Field [ AVAsset Export Session::Error; "" ]
                                                                          • Set Field [ AVAsset Export Session::Status; "" ]
                                                                          • Else
                                                                          • Set Field [ AVAsset Export Session::Progress; MBS( "AVExport.Progress"; $$AVExport ) ]
                                                                          • Set Field [ AVAsset Export Session::Error; MBS( "AVExport.Error"; $$AVExport ) ]
                                                                          • Set Field [ AVAsset Export Session::Status; MBS( "AVExport.Status"; $$AVExport ) ]
                                                                          • End If
                                                                          • If [ AVAsset Export Session::Status = "Completed" or AVAsset Export Session::Status = "Failed" ]
                                                                          • Install OnTimer 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: [Update Status]Next Script: [Set Desktop Output]
                                                                                  Script NameSet OutputFileType
                                                                                  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: [Set OutputFileType]Next Script: [Start Export]
                                                                                            Script NameSet Desktop Output
                                                                                            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: [Set Desktop Output]Next Script: [Cancel Export]
                                                                                                      Script NameStart Export
                                                                                                      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( "AVExport.ExportAsynchronously"; $$AVExport ) ]
                                                                                                        • If [ MBS("ISError") ]
                                                                                                        • Show Custom Dialog [ Title: "Failed to start export session"; Message: MBS("Text.RemovePrefix"; $r; "[MBS] "); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                                                                                        • Exit Script [ ]
                                                                                                        • End If
                                                                                                        • Install OnTimer Script [ “Update Status”; Interval: ,5 ]
                                                                                                        • Perform Script [ “Update Status” ]
                                                                                                        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 Export]Next Script: [Release Export Session]
                                                                                                                    Script NameCancel Export
                                                                                                                    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: [Cancel Export]
                                                                                                                                    Script NameRelease Export Session
                                                                                                                                    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 [ ]
                                                                                                                                      • Set Variable [ $r; Value:MBS("AVExport.Release"; $$AVExport) ]
                                                                                                                                      • Set Variable [ $$AVExport; Value:"" ]
                                                                                                                                      • Set Field [ AVAsset Export Session::Status; "" ]
                                                                                                                                      • Set Field [ AVAsset Export Session::Error; "" ]
                                                                                                                                      • Set Field [ AVAsset Export Session::Duration; "" ]
                                                                                                                                      • Set Field [ AVAsset Export Session::Progress; "" ]
                                                                                                                                      • Set Field [ AVAsset Export Session::EstimatedOutputFileLength; "" ]
                                                                                                                                      • Set Field [ AVAsset Export Session::SupportedFileTypes; "" ]
                                                                                                                                      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: AVAsset Export Session

                                                                                                                                              Used functions:




                                                                                                                                              Links
                                                                                                                                              MBS Xojo blog