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

MBS FileMaker Plugin Example Databases

DeepL

All examples are included with download of MBS FileMaker Plugin.

DeepL.fmp12

Overview
Tables 1
Relationships 0
Layouts 1
Scripts 8
Value Lists 0
Custom Functions 0
Custom Menus 24
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Apex Blau
When opening file
Minimum allowed version 12.0
Login using Account Name; Account= Admin
Allow user to save password On
Require iOS passcode Off
Show Sign-in fields On
Switch to layout Off
Hide all toolbars Off
Script triggers
OnFirstWindowOpen Off
OnLastWindowClose Off
OnWindowOpen Off
OnWindowClose Off
OnFileAVPlayerChange Off
OnWindowTransaction Off
Thumbnail Settings
Generate Thumbnails On; Temporary

 

Tables

Table Name
Statistics
Occurrences in Relationship Graph
DeepL
15 fields defined, 1 record
DeepL

Fields

Table Name: DeepL - 15 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
Primärschlüssel Normal, Text Auto-Enter:
  • Context table: DeepL
    Calculation: Get( UUID )
Validation:
  • Only during data entry
  • Not empty
  • Unique
  • Strict validation
Storage:
  • Repetitions: 1
  • Indexing: Minimal
  • Automatically create indexes as needed
  • Index Language: Unicode Raw
Eindeutige ID für jeden Datensatz in dieser Tabelle
          Erstellungszeitstempel Normal, Timestamp Auto-Enter:
          • Creation timestamp
          Validation:
          • Only during data entry
          • Strict data type: 4 digit year
          • Not empty
          • Strict validation
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
          Datum und Uhrzeit der Erstellung der einzelnen Datensätze
                  ErstelltVon Normal, Text Auto-Enter:
                  • Creation account name
                  Validation:
                  • Only during data entry
                  • Not empty
                  • Strict validation
                  Storage:
                  • Repetitions: 1
                  • Indexing: None
                  • Automatically create indexes as needed
                  • Index Language: German
                  Kontoname des Benutzers, der die einzelnen Datensätze erstellt hat
                          Änderungszeitstempel Normal, Timestamp Auto-Enter:
                          • Modification timestamp
                          Validation:
                          • Only during data entry
                          • Strict data type: 4 digit year
                          • Not empty
                          • Strict validation
                          Storage:
                          • Repetitions: 1
                          • Indexing: None
                          • Automatically create indexes as needed
                          • Index Language: German
                          Datum und Uhrzeit der letzten Änderung der einzelnen Datensätze
                                  GeändertVon Normal, Text Auto-Enter:
                                  • Modification account name
                                  Validation:
                                  • Only during data entry
                                  • Not empty
                                  • Strict validation
                                  Storage:
                                  • Repetitions: 1
                                  • Indexing: None
                                  • Automatically create indexes as needed
                                  • Index Language: German
                                  Kontoname des Benutzers, der die einzelnen Datensätze zuletzt geändert hat
                                          AuthKey Normal, Text Auto-Enter:
                                          • Allow editing
                                          Validation:
                                          • Only during data entry
                                          Storage:
                                          • Global
                                          • Repetitions: 1
                                          • Index Language: German
                                              Input Text Normal, Text Auto-Enter:
                                              • Allow editing
                                              Validation:
                                              • Only during data entry
                                              Storage:
                                              • Repetitions: 1
                                              • Indexing: None
                                              • Automatically create indexes as needed
                                              • Index Language: German
                                                  Output Text Normal, Text Auto-Enter:
                                                  • Allow editing
                                                  Validation:
                                                  • Only during data entry
                                                  Storage:
                                                  • Repetitions: 1
                                                  • Indexing: None
                                                  • Automatically create indexes as needed
                                                  • Index Language: German
                                                      Source Language Normal, Text Auto-Enter:
                                                      • Allow editing
                                                      Validation:
                                                      • Only during data entry
                                                      Storage:
                                                      • Repetitions: 1
                                                      • Indexing: None
                                                      • Automatically create indexes as needed
                                                      • Index Language: German
                                                          Target Language Normal, Text Auto-Enter:
                                                          • Allow editing
                                                          Validation:
                                                          • Only during data entry
                                                          Storage:
                                                          • Repetitions: 1
                                                          • Indexing: None
                                                          • Automatically create indexes as needed
                                                          • Index Language: German
                                                              Detected Language Normal, Text Auto-Enter:
                                                              • Allow editing
                                                              Validation:
                                                              • Only during data entry
                                                              Storage:
                                                              • Repetitions: 1
                                                              • Indexing: None
                                                              • Automatically create indexes as needed
                                                              • Index Language: German
                                                                  Glossary ID Normal, Text Auto-Enter:
                                                                  • Allow editing
                                                                  Validation:
                                                                  • Only during data entry
                                                                  Storage:
                                                                  • Repetitions: 1
                                                                  • Indexing: None
                                                                  • Automatically create indexes as needed
                                                                  • Index Language: German
                                                                      CURL Input Normal, Text Auto-Enter:
                                                                      • Allow editing
                                                                      • Context table: DeepL
                                                                        Calculation: Let ( [ jsonFormatted = MBS("JSON.Format"; Self); jsonFormatFailed = MBS("IsError"); jsonText = If(jsonFormatFailed; Self; jsonFormatted); result = MBS("JSON.Colorize"; jsonText) ]; result ) // put this calculation into a field, so the field gets formated and colorized whenever the field is changed and the record gets commited.
                                                                      Validation:
                                                                      • Only during data entry
                                                                      Storage:
                                                                      • Repetitions: 1
                                                                      • Indexing: None
                                                                      • Automatically create indexes as needed
                                                                      • Index Language: German
                                                                          CURL Output Normal, Text Auto-Enter:
                                                                          • Allow editing
                                                                          • Context table: DeepL
                                                                            Calculation: Let ( [ jsonFormatted = MBS("JSON.Format"; Self); jsonFormatFailed = MBS("IsError"); jsonText = If(jsonFormatFailed; Self; jsonFormatted); result = MBS("JSON.Colorize"; jsonText) ]; result ) // put this calculation into a field, so the field gets formated and colorized whenever the field is changed and the record gets commited.
                                                                          Validation:
                                                                          • Only during data entry
                                                                          Storage:
                                                                          • Repetitions: 1
                                                                          • Indexing: None
                                                                          • Automatically create indexes as needed
                                                                          • Index Language: German
                                                                              CURL Debug Normal, Text Auto-Enter:
                                                                              • Allow editing
                                                                              Validation:
                                                                              • Only during data entry
                                                                              Storage:
                                                                              • Repetitions: 1
                                                                              • Indexing: None
                                                                              • Automatically create indexes as needed
                                                                              • Index Language: German

                                                                                  Layout Objects: DeepL

                                                                                  Regular Fields

                                                                                  Field Name: DeepL::AuthKey
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 770 pt
                                                                                  • Left: 95 pt
                                                                                  • Bottom: 801 pt
                                                                                  • Right: 535 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

                                                                                  Field Name: DeepL::Input Text
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 114 pt
                                                                                  • Left: 138 pt
                                                                                  • Bottom: 601 pt
                                                                                  • Right: 471 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
                                                                                  Yes

                                                                                  Field Name: DeepL::Output Text
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 115 pt
                                                                                  • Left: 582 pt
                                                                                  • Bottom: 601 pt
                                                                                  • Right: 915 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
                                                                                  Yes

                                                                                  Field Name: DeepL::Source Language
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 616 pt
                                                                                  • Left: 138 pt
                                                                                  • Bottom: 647 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: Default for Data Type
                                                                                  • Go to next field using: Tab key
                                                                                  Yes

                                                                                  Field Name: DeepL::Target Language
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 651 pt
                                                                                  • Left: 138 pt
                                                                                  • Bottom: 682 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: Default for Data Type
                                                                                  • Go to next field using: Tab key
                                                                                  Yes

                                                                                  Field Name: DeepL::Detected Language
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 616 pt
                                                                                  • Left: 662 pt
                                                                                  • Bottom: 647 pt
                                                                                  • Right: 915 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
                                                                                  Yes

                                                                                  Field Name: DeepL::Glossary ID
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 686 pt
                                                                                  • Left: 138 pt
                                                                                  • Bottom: 717 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: Default for Data Type
                                                                                  • Go to next field using: Tab key
                                                                                  Yes

                                                                                  Field Name: DeepL::CURL Input
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 651 pt
                                                                                  • Left: 662 pt
                                                                                  • Bottom: 682 pt
                                                                                  • Right: 915 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
                                                                                  Yes

                                                                                  Field Name: DeepL::CURL Output
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 686 pt
                                                                                  • Left: 662 pt
                                                                                  • Bottom: 717 pt
                                                                                  • Right: 915 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
                                                                                  Yes

                                                                                  Field Name: DeepL::CURL Debug
                                                                                  Field Properties Coordinates Field Format Field Behavior Quick Find
                                                                                  • Top: 721 pt
                                                                                  • Left: 662 pt
                                                                                  • Bottom: 752 pt
                                                                                  • Right: 915 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
                                                                                  Yes

                                                                                  Buttons

                                                                                  Button Properties Coordinates Script/Script Step
                                                                                    Type:
                                                                                  • Text: Translate
                                                                                    Additional Properties:
                                                                                  • Change to hand cursor over button
                                                                                  • Top: 182 pt
                                                                                  • Left: 471 pt
                                                                                  • Bottom: 213 pt
                                                                                  • Right: 582 pt
                                                                                  • Anchoring: Left, Top
                                                                                  Perform Script [ “Translate” ]

                                                                                  Scripts:


                                                                                  Script Hierarchy

                                                                                  Translate
                                                                                  Clear
                                                                                  -
                                                                                  Get Gloassary Languages
                                                                                  Get Gloassary List
                                                                                  Get Gloassary Entries
                                                                                  Delete Gloassary
                                                                                  Create Gloassary

                                                                                  Next Script: [Clear]
                                                                                  Script Name Translate
                                                                                  Run script with full access privileges Off
                                                                                  Siri Shortcut Visible Off
                                                                                  Include In Menu Yes
                                                                                  Layouts that use this script
                                                                                  Scripts that use this script
                                                                                    Script Definition
                                                                                    Script Steps
                                                                                    • If [ IsEmpty ( DeepL::AuthKey ) ]
                                                                                    • Show Custom Dialog [ Title: "Missing Auth Key!"; Message: "Please put in an authorization key."; Default Button: “OK”, Commit: “Yes” ]
                                                                                    • Exit Script [ ]
                                                                                    • End If
                                                                                    • Set Variable [ $json; Value:"{}" ]
                                                                                    • Set Variable [ $json; Value:JSONSetElement ( $json ; "text.[0]" ; DeepL::Input Text; JSONString ) ]
                                                                                    • If [ not IsEmpty ( DeepL::Source Language ) ]
                                                                                    • Set Variable [ $json; Value:JSONSetElement ( $json ; "source_lang" ; DeepL::Source Language; JSONString ) ]
                                                                                    • End If
                                                                                    • If [ not IsEmpty ( DeepL::Target Language ) ]
                                                                                    • Set Variable [ $json; Value:JSONSetElement ( $json ; "target_lang" ; DeepL::Target Language; JSONString ) ]
                                                                                    • End If
                                                                                    • If [ not IsEmpty ( DeepL::Glossary ID ) ]
                                                                                    • Set Variable [ $json; Value:JSONSetElement ( $json ; "glossary_id" ; DeepL::Glossary ID; JSONString ) ]
                                                                                    • End If
                                                                                    • Set Field [ DeepL::CURL Input; $json ]
                                                                                    • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                                                                    • Set Variable [ $r; Value:MBS("CURL.SetOptionHTTPHeader"; $curl; "Authorization: DeepL-Auth-Key " & DeepL::AuthKey; "Content-Type: application/json") ]
                                                                                    • Set Variable [ $r; Value:MBS("CURL.SetOptionPostFields"; $curl; $json) ]
                                                                                    • Set Variable [ $r; Value:MBS("CURL.SetOptionTimeOut"; $curl; 10) ]
                                                                                    • Set Variable [ $r; Value:MBS("CURL.SetOptionURL"; $curl; "https://api.deepl.com/v2/translate") ]
                                                                                    • Set Variable [ $r; Value:MBS("CURL.Perform"; $curl) ]
                                                                                    • Set Field [ DeepL::CURL Output; MBS("CURL.GetResultAsText"; $curl; "UTF-8") ]
                                                                                    • Set Field [ DeepL::CURL Debug; MBS("CURL.GetDebugAsText"; $curl; "UTF-8") ]
                                                                                    • Set Field [ DeepL::Detected Language; JSONGetElement ( DeepL::CURL Output ; "translations.[0].detected_source_language" ) ]
                                                                                    • Set Field [ DeepL::Output Text; JSONGetElement ( DeepL::CURL Output ; "translations.[0].text" ) ]
                                                                                    • Set Variable [ $r; Value:MBS("CURL.Release"; $curl) ]
                                                                                    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: [Translate] Next Script: [-]
                                                                                            Script Name Clear
                                                                                            Run script with full access privileges Off
                                                                                            Siri Shortcut Visible Off
                                                                                            Include In Menu Yes
                                                                                            Layouts that use this script
                                                                                              Scripts that use this script
                                                                                                Script Definition
                                                                                                Script Steps
                                                                                                • Set Field [ DeepL::Output Text; "" ]
                                                                                                • Set Field [ DeepL::Detected Language; "" ]
                                                                                                • Set Field [ DeepL::CURL Input; "" ]
                                                                                                • Set Field [ DeepL::CURL Output; "" ]
                                                                                                • Set Field [ DeepL::CURL Debug; "" ]
                                                                                                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: [Clear] Next Script: [Get Gloassary Languages]
                                                                                                        Script Name -
                                                                                                        Run script with full access privileges Off
                                                                                                        Siri Shortcut Visible Off
                                                                                                        Include In Menu Yes
                                                                                                        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: [-] Next Script: [Get Gloassary List]
                                                                                                                            Script Name Get Gloassary Languages
                                                                                                                            Run script with full access privileges Off
                                                                                                                            Siri Shortcut Visible Off
                                                                                                                            Include In Menu Yes
                                                                                                                            Layouts that use this script
                                                                                                                              Scripts that use this script
                                                                                                                                Script Definition
                                                                                                                                Script Steps
                                                                                                                                • If [ IsEmpty ( DeepL::AuthKey ) ]
                                                                                                                                • Show Custom Dialog [ Title: "Missing Auth Key!"; Message: "Please put in an authorization key."; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                • Exit Script [ ]
                                                                                                                                • End If
                                                                                                                                • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.SetOptionHTTPHeader"; $curl; "Authorization: DeepL-Auth-Key " & DeepL::AuthKey; "Content-Type: application/json") ]
                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.SetOptionTimeOut"; $curl; 10) ]
                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.SetOptionURL"; $curl; "https://api.deepl.com/v2/glossary-language-pairs") ]
                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.Perform"; $curl) ]
                                                                                                                                • Set Field [ DeepL::CURL Output; MBS("CURL.GetResultAsText"; $curl; "UTF-8") ]
                                                                                                                                • Set Field [ DeepL::CURL Debug; MBS("CURL.GetDebugAsText"; $curl; "UTF-8") ]
                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.Release"; $curl) ]
                                                                                                                                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: [Get Gloassary Languages] Next Script: [Get Gloassary Entries]
                                                                                                                                        Script Name Get Gloassary List
                                                                                                                                        Run script with full access privileges Off
                                                                                                                                        Siri Shortcut Visible Off
                                                                                                                                        Include In Menu Yes
                                                                                                                                        Layouts that use this script
                                                                                                                                          Scripts that use this script
                                                                                                                                            Script Definition
                                                                                                                                            Script Steps
                                                                                                                                            • If [ IsEmpty ( DeepL::AuthKey ) ]
                                                                                                                                            • Show Custom Dialog [ Title: "Missing Auth Key!"; Message: "Please put in an authorization key."; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                            • Exit Script [ ]
                                                                                                                                            • End If
                                                                                                                                            • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                                                                                                                            • Set Variable [ $r; Value:MBS("CURL.SetOptionHTTPHeader"; $curl; "Authorization: DeepL-Auth-Key " & DeepL::AuthKey; "Content-Type: application/json") ]
                                                                                                                                            • Set Variable [ $r; Value:MBS("CURL.SetOptionTimeOut"; $curl; 10) ]
                                                                                                                                            • Set Variable [ $r; Value:MBS("CURL.SetOptionURL"; $curl; "https://api.deepl.com/v2/glossaries") ]
                                                                                                                                            • Set Variable [ $r; Value:MBS("CURL.Perform"; $curl) ]
                                                                                                                                            • Set Field [ DeepL::CURL Output; MBS("CURL.GetResultAsText"; $curl; "UTF-8") ]
                                                                                                                                            • Set Field [ DeepL::CURL Debug; MBS("CURL.GetDebugAsText"; $curl; "UTF-8") ]
                                                                                                                                            • Set Variable [ $r; Value:MBS("CURL.Release"; $curl) ]
                                                                                                                                            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: [Get Gloassary List] Next Script: [Delete Gloassary]
                                                                                                                                                    Script Name Get Gloassary Entries
                                                                                                                                                    Run script with full access privileges Off
                                                                                                                                                    Siri Shortcut Visible Off
                                                                                                                                                    Include In Menu Yes
                                                                                                                                                    Layouts that use this script
                                                                                                                                                      Scripts that use this script
                                                                                                                                                        Script Definition
                                                                                                                                                        Script Steps
                                                                                                                                                        • If [ IsEmpty ( DeepL::AuthKey ) ]
                                                                                                                                                        • Show Custom Dialog [ Title: "Missing Auth Key!"; Message: "Please put in an authorization key."; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                        • Exit Script [ ]
                                                                                                                                                        • End If
                                                                                                                                                        • If [ IsEmpty ( DeepL::Glossary ID ) ]
                                                                                                                                                        • Show Custom Dialog [ Title: "No glossary ID"; Message: "Please enter a glossary id"; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                        • Exit Script [ ]
                                                                                                                                                        • End If
                                                                                                                                                        • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                                                                                                                                        • Set Variable [ $r; Value:MBS("CURL.SetOptionHTTPHeader"; $curl; "Authorization: DeepL-Auth-Key " & DeepL::AuthKey; "Content-Type: application/json") ]
                                                                                                                                                        • Set Variable [ $r; Value:MBS("CURL.SetOptionTimeOut"; $curl; 10) ]
                                                                                                                                                        • Set Variable [ $r; Value:MBS("CURL.SetOptionURL"; $curl; "https://api.deepl.com/v2/glossaries/" & DeepL::Glossary ID &"/entries") ]
                                                                                                                                                        • Set Variable [ $r; Value:MBS("CURL.Perform"; $curl) ]
                                                                                                                                                        • Set Field [ DeepL::CURL Output; MBS("CURL.GetResultAsText"; $curl; "UTF-8") ]
                                                                                                                                                        • Set Field [ DeepL::CURL Debug; MBS("CURL.GetDebugAsText"; $curl; "UTF-8") ]
                                                                                                                                                        • Set Variable [ $r; Value:MBS("CURL.Release"; $curl) ]
                                                                                                                                                        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: [Get Gloassary Entries] Next Script: [Create Gloassary]
                                                                                                                                                                Script Name Delete Gloassary
                                                                                                                                                                Run script with full access privileges Off
                                                                                                                                                                Siri Shortcut Visible Off
                                                                                                                                                                Include In Menu Yes
                                                                                                                                                                Layouts that use this script
                                                                                                                                                                  Scripts that use this script
                                                                                                                                                                    Script Definition
                                                                                                                                                                    Script Steps
                                                                                                                                                                    • If [ IsEmpty ( DeepL::AuthKey ) ]
                                                                                                                                                                    • Show Custom Dialog [ Title: "Missing Auth Key!"; Message: "Please put in an authorization key."; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                                    • Exit Script [ ]
                                                                                                                                                                    • End If
                                                                                                                                                                    • If [ IsEmpty ( DeepL::Glossary ID ) ]
                                                                                                                                                                    • Show Custom Dialog [ Title: "No glossary ID"; Message: "Please enter a glossary id"; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                                    • Exit Script [ ]
                                                                                                                                                                    • End If
                                                                                                                                                                    • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                                                                                                                                                    • Set Variable [ $r; Value:MBS("CURL.SetOptionHTTPHeader"; $curl; "Authorization: DeepL-Auth-Key " & DeepL::AuthKey; "Content-Type: application/json") ]
                                                                                                                                                                    • Set Variable [ $r; Value:MBS("CURL.SetOptionTimeOut"; $curl; 10) ]
                                                                                                                                                                    • Set Variable [ $r; Value:MBS("CURL.SetOptionCustomRequest"; $curl; "DELETE") ]
                                                                                                                                                                    • Set Variable [ $r; Value:MBS("CURL.SetOptionURL"; $curl; "https://api.deepl.com/v2/glossaries/" & DeepL::Glossary ID) ]
                                                                                                                                                                    • Set Variable [ $r; Value:MBS("CURL.Perform"; $curl) ]
                                                                                                                                                                    • Set Field [ DeepL::CURL Output; MBS("CURL.GetResultAsText"; $curl; "UTF-8") ]
                                                                                                                                                                    • Set Field [ DeepL::CURL Debug; MBS("CURL.GetDebugAsText"; $curl; "UTF-8") ]
                                                                                                                                                                    • Set Variable [ $r; Value:MBS("CURL.Release"; $curl) ]
                                                                                                                                                                    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: [Delete Gloassary]
                                                                                                                                                                            Script Name Create Gloassary
                                                                                                                                                                            Run script with full access privileges Off
                                                                                                                                                                            Siri Shortcut Visible Off
                                                                                                                                                                            Include In Menu Yes
                                                                                                                                                                            Layouts that use this script
                                                                                                                                                                              Scripts that use this script
                                                                                                                                                                                Script Definition
                                                                                                                                                                                Script Steps
                                                                                                                                                                                • If [ IsEmpty ( DeepL::AuthKey ) ]
                                                                                                                                                                                • Show Custom Dialog [ Title: "Missing Auth Key!"; Message: "Please put in an authorization key."; Default Button: “OK”, Commit: “Yes” ]
                                                                                                                                                                                • Exit Script [ ]
                                                                                                                                                                                • End If
                                                                                                                                                                                • Set Variable [ $json; Value:"{}" ]
                                                                                                                                                                                • Set Variable [ $json; Value:JSONSetElement ( $json ; "name" ; "MyGlossary"; JSONString ) ]
                                                                                                                                                                                • Set Variable [ $json; Value:JSONSetElement ( $json ; "source_lang" ; DeepL::Source Language; JSONString ) ]
                                                                                                                                                                                • Set Variable [ $json; Value:JSONSetElement ( $json ; "target_lang" ; DeepL::Target Language; JSONString ) ]
                                                                                                                                                                                • Set Variable [ $json; Value:JSONSetElement ( $json ; "entries" ; "Hello,Hallo¶World,Welt¶"; JSONString ) ]
                                                                                                                                                                                • Set Variable [ $json; Value:JSONSetElement ( $json ; "entries_format" ; "csv"; JSONString ) ]
                                                                                                                                                                                • Set Variable [ $curl; Value:MBS("CURL.New") ]
                                                                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.SetOptionHTTPHeader"; $curl; "Authorization: DeepL-Auth-Key " & DeepL::AuthKey; "Content-Type: application/json") ]
                                                                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.SetOptionTimeOut"; $curl; 10) ]
                                                                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.SetOptionPostFields"; $curl; $json) ]
                                                                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.SetOptionURL"; $curl; "https://api.deepl.com/v2/glossaries") ]
                                                                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.Perform"; $curl) ]
                                                                                                                                                                                • Set Field [ DeepL::CURL Output; MBS("CURL.GetResultAsText"; $curl; "UTF-8") ]
                                                                                                                                                                                • Set Field [ DeepL::CURL Debug; MBS("CURL.GetDebugAsText"; $curl; "UTF-8") ]
                                                                                                                                                                                • Set Field [ DeepL::Glossary ID; JSONGetElement ( DeepL::CURL Output ; "glossary_id" ) ]
                                                                                                                                                                                • Set Variable [ $r; Value:MBS("CURL.Release"; $curl) ]
                                                                                                                                                                                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: DeepL

                                                                                                                                                                                        Used functions: