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

MBS FileMaker Plugin Example Databases

File Listing With Icons

All examples are included with download of MBS FileMaker Plugin.

File Listing With Icons.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts1
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: List
OnLastWindowCloseOff
OnWindowOpenOff
OnWindowCloseOff
OnFileAVPlayerChangeOff
Thumbnail Settings
Generate ThumbnailsOn; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
File Listing With Icons
6 fields defined, 15 records
File Listing With Icons

Fields

Table Name: File Listing With Icons - 6 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
IconNormal, BinaryAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      NameNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          SizeNormal, NumberAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              CreationDateNormal, TimestampAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  ModificationDateNormal, TimestampAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                      KindNormal, TextAuto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German

                          Layout Objects: File Listing With Icons

                          Regular Fields

                          Field Name: File Listing With Icons::Icon
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 74 pt
                          • Left: 0 pt
                          • Bottom: 131 pt
                          • Right: 57 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
                          No

                          Field Name: File Listing With Icons::Name
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 78 pt
                          • Left: 60 pt
                          • Bottom: 92 pt
                          • Right: 313 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: File Listing With Icons::Size
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 78 pt
                          • Left: 318 pt
                          • Bottom: 92 pt
                          • Right: 397 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: File Listing With Icons::CreationDate
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 96 pt
                          • Left: 60 pt
                          • Bottom: 110 pt
                          • Right: 301 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: File Listing With Icons::ModificationDate
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 114 pt
                          • Left: 60 pt
                          • Bottom: 128 pt
                          • Right: 301 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: File Listing With Icons::Kind
                          Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                          • Top: 96 pt
                          • Left: 318 pt
                          • Bottom: 110 pt
                          • Right: 571 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: List Items on Desktop
                            Additional Properties:
                          • Change to hand cursor over button
                          • Rectangular
                          • Top: 18 pt
                          • Left: 240 pt
                          • Bottom: 43 pt
                          • Right: 379 pt
                          • Anchoring: Left, Top
                          Perform Script [ “List” ]

                          Scripts:


                          Script Hierarchy

                          List

                          Script NameList
                          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("Trace") ]
                            • Delete All Records [ No dialog ]
                            • #List all files on desktop
                            • Set Variable [ $Path; Value:MBS("Folders.UserDesktop") ]
                            • Set Variable [ $files; Value:MBS( "Files.List"; $path) ]
                            • #Fix path to have / or \ on end
                            • If [ Get(SystemPlatform) = -2 ]
                            • # Windows
                            • If [ Right($path; 1) ≠ "\\" ]
                            • Set Variable [ $Path; Value:$path & "\\" ]
                            • End If
                            • Else
                            • # Mac
                            • If [ Right($path; 1) ≠ "/" ]
                            • Set Variable [ $Path; Value:$path & "/" ]
                            • End If
                            • End If
                            • #Loop over all files
                            • Set Variable [ $count; Value:ValueCount ( $files ) ]
                            • Set Variable [ $index; Value:1 ]
                            • Loop
                            • Set Variable [ $name; Value:GetValue ( $files ; $index ) ]
                            • Set Variable [ $filePath; Value:$path & $name ]
                            • New Record/Request
                            • Set Field [ File Listing With Icons::Name; $name ]
                            • Set Field [ File Listing With Icons::Size; MBS("Files.Filesize"; $filePath) ]
                            • Set Field [ File Listing With Icons::CreationDate; MBS("Files.CreationDate"; $filePath) ]
                            • Set Field [ File Listing With Icons::ModificationDate; MBS("Files.ModificationDate"; $filePath) ]
                            • Set Field [ File Listing With Icons::Icon; MBS("Icon.GetIcon"; $filePath; 32) ]
                            • Set Field [ File Listing With Icons::Kind; MBS("Files.FileKind"; $filePath) ]
                            • Commit Records/Requests
                            • Set Variable [ $index; Value:$index + 1 ]
                            • Exit Loop If [ $count < $index ]
                            • End Loop
                            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: File Listing With Icons

                                    Used functions: