MBS FileMaker Plugin Example Databases

AppleScript Properties

All examples are included with download of MBS FileMaker Plugin.

AppleScript Properties.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
AppleScript Properties
5 fields defined, 1 record
AppleScript Properties

Fields

Table Name: AppleScript Properties - 5 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
AppleScriptCodeNormal, TextAuto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
  • Indexing: None
  • Automatically create indexes as needed
  • Index Language: German
      SubjectNormal, TextAuto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Repetitions: 1
      • Indexing: None
      • Automatically create indexes as needed
      • Index Language: German
          BodyNormal, TextAuto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
              ReceiverNormal, TextAuto-Enter:
              • Allow editing
              Validation:
              • Only during data entry
              Storage:
              • Repetitions: 1
              • Indexing: None
              • Automatically create indexes as needed
              • Index Language: German
                  SenderNormal, TextAuto-Enter:
                  • Allow editing
                  Validation:
                  • Only during data entry
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German

                      Layout Objects: AppleScript Properties

                      Regular Fields

                      Field Name: AppleScript Properties::AppleScriptCode
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 24 pt
                      • Left: 138 pt
                      • Bottom: 248 pt
                      • Right: 553 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: AppleScript Properties::Subject
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 252 pt
                      • Left: 138 pt
                      • Bottom: 266 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: AppleScript Properties::Body
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 270 pt
                      • Left: 138 pt
                      • Bottom: 284 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: AppleScript Properties::Receiver
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 288 pt
                      • Left: 138 pt
                      • Bottom: 302 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: AppleScript Properties::Sender
                      Field PropertiesCoordinatesField FormatField BehaviorQuick Find
                      • Top: 306 pt
                      • Left: 138 pt
                      • Bottom: 320 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: List Properties
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 252 pt
                      • Left: 408 pt
                      • Bottom: 277 pt
                      • Right: 541 pt
                      • Anchoring: Left, Top
                      Perform Script [ “ListProperties” ]

                      Scripts:


                      Button PropertiesCoordinatesScript/Script Step
                        Type:
                      • Text: Run Script
                        Additional Properties:
                      • Change to hand cursor over button
                      • Rectangular
                      • Top: 288 pt
                      • Left: 408 pt
                      • Bottom: 313 pt
                      • Right: 541 pt
                      • Anchoring: Left, Top
                      Perform Script [ “RunScript” ]

                      Scripts:


                      Script Hierarchy

                      ListProperties
                      RunScript

                      Next Script: [RunScript]
                      Script NameListProperties
                      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") ]
                        • Set Variable [ $scriptID; Value:MBS( "Applescript.Compile"; AppleScript Properties::AppleScriptCode ) ]
                        • If [ MBS("isError") ]
                        • Show Custom Dialog [ Message: MBS("AppleScript.LastErrorMessage"); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                        • Exit Script [ ]
                        • End If
                        • Set Variable [ $count; Value:MBS( "Applescript.PropertyCount"; $scriptID) ]
                        • Set Variable [ $list; Value:"" ]
                        • Set Variable [ $i; Value:0 ]
                        • If [ GetAsNumber($count) > 0 ]
                        • Loop
                        • Set Variable [ $n; Value:MBS( "Applescript.GetPropertyName"; $ScriptID; $i ) ]
                        • Set Variable [ $list; Value:$list & $n & ¶ ]
                        • Set Variable [ $i; Value:$i+1 ]
                        • Exit Loop If [ $count = $i ]
                        • End Loop
                        • Show Custom Dialog [ Title: $count & " Properties"; Message: $list; Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                        • End If
                        • Set Variable [ $r; Value:MBS( "Applescript.Close"; $scriptID) ]
                        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: [ListProperties]
                                Script NameRunScript
                                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") ]
                                  • Set Variable [ $scriptID; Value:MBS( "Applescript.Compile"; AppleScript Properties::AppleScriptCode ) ]
                                  • If [ MBS("isError") ]
                                  • Show Custom Dialog [ Message: MBS("AppleScript.LastErrorMessage"); Default Button: “OK”, Commit: “No”; Button 2: “Cancel”, Commit: “No” ]
                                  • Exit Script [ ]
                                  • End If
                                  • Set Variable [ $r; Value:MBS( "Applescript.SetPropertyValue"; $scriptID; "MySubject"; AppleScript Properties::Subject) ]
                                  • Set Variable [ $r; Value:MBS( "Applescript.SetPropertyValue"; $scriptID; "MyBody"; AppleScript Properties::Body) ]
                                  • Set Variable [ $r; Value:MBS( "Applescript.SetPropertyValue"; $scriptID; "MyReceiver"; AppleScript Properties::Receiver) ]
                                  • Set Variable [ $r; Value:MBS( "Applescript.SetPropertyValue"; $scriptID; "MySender"; AppleScript Properties::Sender) ]
                                  • Show Custom Dialog [ Message: MBS("Applescript.GetPropertyValue"; $scriptID; "MySubject"); Default Button: “OK”, Commit: “Yes”; Button 2: “Cancel”, Commit: “No” ]
                                  • Set Variable [ $r; Value:MBS( "Applescript.Execute"; $scriptID) ]
                                  • Set Variable [ $r; Value:MBS( "Applescript.Close"; $scriptID) ]
                                  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: AppleScript Properties

                                          Used functions:




                                          Links
                                          MBS Xojo Plugins