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

MBS FileMaker Plugin Example Databases

AppleScript

All examples are included with download of MBS FileMaker Plugin.

AppleScript.fmp12

Overview
Tables1
Relationships0
Layouts1
Scripts0
Value Lists0
Custom Functions0
Custom Menus32
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
1 field defined, 1 record
AppleScript

Fields

Table Name: AppleScript - 1 Fields
Field NameTypeOptionsCommentsOn LayoutsIn RelationshipsIn ScriptsIn Value Lists
testNormal, 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

          Group Buttons

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: say
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 150 pt
          • Left: 48 pt
          • Bottom: 175 pt
          • Right: 139 pt
          • Anchoring: Left, Top
          Set Variable [ $a; Value:MBS("Applescript.Run"; "say \"Hello World\"") ]

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: desktop folder
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 186 pt
          • Left: 48 pt
          • Bottom: 211 pt
          • Right: 139 pt
          • Anchoring: Left, Top
          Show Custom Dialog [ Message: MBS("Applescript.Run"; "return (path to desktop) as string"); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: select color
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 222 pt
          • Left: 48 pt
          • Bottom: 248 pt
          • Right: 139 pt
          • Anchoring: Left, Top
          Show Custom Dialog [ Message: MBS("Applescript.Run"; "return choose color default color {65535, 0, 0}"); Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Switch to Finder
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 258 pt
          • Left: 48 pt
          • Bottom: 284 pt
          • Right: 139 pt
          • Anchoring: Left, Top
          Set Variable [ $a; Value:MBS("Applescript.Run"; "tell application \"Finder\" to activate") ]

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Volume 50%
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 60 pt
          • Left: 312 pt
          • Bottom: 86 pt
          • Right: 403 pt
          • Anchoring: Left, Top
          Set Variable [ $a; Value:MBS("Applescript.Run"; "set volume output volume 50") ]

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Volume 0%
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 60 pt
          • Left: 210 pt
          • Bottom: 86 pt
          • Right: 301 pt
          • Anchoring: Left, Top
          Set Variable [ $a; Value:MBS("Applescript.Run"; "set volume output volume 0") ]

          Button PropertiesCoordinatesScript/Script Step
            Type:
          • Text: Volume 100%
            Additional Properties:
          • Change to hand cursor over button
          • Rectangular
          • Top: 60 pt
          • Left: 414 pt
          • Bottom: 86 pt
          • Right: 505 pt
          • Anchoring: Left, Top
          Set Variable [ $a; Value:MBS("Applescript.Run"; "set volume output volume 100") ]

          Download example: AppleScript