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

MBS FileMaker Plugin Example Databases

PDF Merge Shrink Tool

All examples are included with download of MBS FileMaker Plugin.

PDF Merge Shrink Tool.fmp12

Overview
Tables 1
Relationships 1
Layouts 1
Scripts 9
Value Lists 0
Custom Functions 0
Custom Menus 33
File Options
Default custom menu set [Standard FileMaker Menus]
Default theme Apex Blue
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 Off
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
PDFTool
10 fields defined, 0 record
PDFTool__PTO, PDFTool__Self|One

Fields

Table Name: PDFTool - 10 Fields
Field Name Type Options Comments On Layouts In Relationships In Scripts In Value Lists
PDFContainer Normal, Binary Auto-Enter:
  • Allow editing
Validation:
  • Only during data entry
Storage:
  • Repetitions: 1
      gDropLogo Normal, Binary Auto-Enter:
      • Allow editing
      Validation:
      • Only during data entry
      Storage:
      • Global
      • Repetitions: 1
          InternalFileSourceNote Normal, Text Auto-Enter:
          • Allow editing
          Validation:
          • Only during data entry
          Storage:
          • Repetitions: 1
          • Indexing: None
          • Automatically create indexes as needed
          • Index Language: German
                Path Normal, Text Auto-Enter:
                • Allow editing
                Validation:
                • Only during data entry
                Storage:
                • Repetitions: 1
                • Indexing: None
                • Automatically create indexes as needed
                • Index Language: German
                      Sort Normal, Number Auto-Enter:
                      • Allow editing
                      Validation:
                      • Only during data entry
                      Storage:
                      • Repetitions: 1
                      • Indexing: None
                      • Automatically create indexes as needed
                      • Index Language: German
                          One Calculated, Number Calculation: Auto-Enter:
                          • Always evaluate
                          Storage:
                          • Repetitions: 1
                          • Indexing: All
                          • Index Language: German
                                gFinalPDF Normal, Binary Auto-Enter:
                                • Allow editing
                                Validation:
                                • Only during data entry
                                Storage:
                                • Global
                                • Repetitions: 1
                                    FileName Normal, Text Auto-Enter:
                                    • Allow editing
                                    Validation:
                                    • Only during data entry
                                    Storage:
                                    • Repetitions: 1
                                    • Indexing: None
                                    • Automatically create indexes as needed
                                    • Index Language: German
                                        gQuartzFiltersToUse Normal, Text Auto-Enter:
                                        • Allow editing
                                        Validation:
                                        • Only during data entry
                                        Storage:
                                        • Global
                                        • Repetitions: 1
                                        • Index Language: German
                                            NumberOfPagesInFile Normal, Number Auto-Enter:
                                            • Allow editing
                                            Validation:
                                            • Only during data entry
                                            Storage:
                                            • Repetitions: 1
                                            • Indexing: None
                                            • Automatically create indexes as needed
                                            • Index Language: German

                                                Layout Objects: PDF Tool

                                                Regular Fields

                                                Field Name: PDFTool__PTO::PDFContainer
                                                Field Properties Coordinates Field Format Field Behavior Quick Find
                                                • Top: 238 pt
                                                • Left: 6 pt
                                                • Bottom: 523 pt
                                                • Right: 206 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: PDFTool__PTO::gDropLogo
                                                Field Properties Coordinates Field Format Field Behavior Quick Find
                                                • Top: 173 pt
                                                • Left: 294 pt
                                                • Bottom: 336 pt
                                                • Right: 529 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: PDFTool__PTO::gQuartzFiltersToUse
                                                Field Properties Coordinates Field Format Field Behavior Quick Find
                                                • Top: 402 pt
                                                • Left: 294 pt
                                                • Bottom: 534 pt
                                                • Right: 529 pt
                                                • Anchoring: Left, Top
                                                Field Format:
                                                • Edit Box
                                                • Include vertical scrollbar
                                                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: PDFTool__PTO::Sort
                                                Field Properties Coordinates Field Format Field Behavior Quick Find
                                                • Top: 238 pt
                                                • Left: 646 pt
                                                • Bottom: 274 pt
                                                • Right: 689 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: PDFTool__PTO::FileName
                                                Field Properties Coordinates Field Format Field Behavior Quick Find
                                                • Top: 316 pt
                                                • Left: 219 pt
                                                • Bottom: 368 pt
                                                • Right: 441 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: PDFTool__PTO::gFinalPDF
                                                Field Properties Coordinates Field Format Field Behavior Quick Find
                                                • Top: 143 pt
                                                • Left: 597 pt
                                                • Bottom: 966 pt
                                                • Right: 1095 pt
                                                • Anchoring: Left, Top
                                                Field Format:
                                                • Edit Box
                                                • Optimized for interactive content
                                                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: PDFTool__PTO::NumberOfPagesInFile
                                                Field Properties Coordinates Field Format Field Behavior Quick Find
                                                • Top: 266 pt
                                                • Left: 219 pt
                                                • Bottom: 287 pt
                                                • Right: 298 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: Quartz Filter Manager
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 340 pt
                                                • Left: 294 pt
                                                • Bottom: 367 pt
                                                • Right: 527 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “Quartz Filter Functions”; Parameter: "ShowFilterManager" ]

                                                Scripts:


                                                Button Properties Coordinates Script/Script Step
                                                  Type:
                                                • Text: Read all available Quartz Filters
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 371 pt
                                                • Left: 294 pt
                                                • Bottom: 398 pt
                                                • Right: 527 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “Quartz Filter Functions”; Parameter: "GetFilterList" ]

                                                Scripts:


                                                Button Properties Coordinates Script/Script Step
                                                  Type:
                                                • Text: All
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 194 pt
                                                • Left: 646 pt
                                                • Bottom: 230 pt
                                                • Right: 689 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “Clear all” ]

                                                Scripts:


                                                Button Properties Coordinates Script/Script Step
                                                  Type:
                                                • Text: ReInitialize Drop Zone
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 114 pt
                                                • Left: 278 pt
                                                • Bottom: 150 pt
                                                • Right: 441 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “DropZone ReInitialize i.e. after Layout Mode” ]

                                                Scripts:


                                                Button Properties Coordinates Script/Script Step
                                                  Type:
                                                • Text:
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 238 pt
                                                • Left: 446 pt
                                                • Bottom: 379 pt
                                                • Right: 565 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “UpDownManualTrigger”; Parameter: "Up" ]

                                                Scripts:


                                                Button Properties Coordinates Script/Script Step
                                                  Type:
                                                • Text:
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 382 pt
                                                • Left: 446 pt
                                                • Bottom: 523 pt
                                                • Right: 565 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “UpDownManualTrigger”; Parameter: "Down" ]

                                                Scripts:


                                                Button Properties Coordinates Script/Script Step
                                                  Type:
                                                • Text: Seite Löschen
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 280 pt
                                                • Left: 646 pt
                                                • Bottom: 316 pt
                                                • Right: 689 pt
                                                • Anchoring: Left, Top
                                                Delete Record/Request [ No dialog ]

                                                Button Properties Coordinates Script/Script Step
                                                  Type:
                                                • Text: Merge
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 114 pt
                                                • Left: 446 pt
                                                • Bottom: 150 pt
                                                • Right: 565 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “Combine PDFs” ]

                                                Scripts:


                                                Button Properties Coordinates Script/Script Step
                                                  Type:
                                                • Text: Export
                                                  Additional Properties:
                                                • Change to hand cursor over button
                                                • Top: 194 pt
                                                • Left: 446 pt
                                                • Bottom: 230 pt
                                                • Right: 565 pt
                                                • Anchoring: Left, Top
                                                Perform Script [ “Export FinalPDF” ]

                                                Scripts:

                                                Conditional Formatting Condition Format
                                                1.

                                                  self:normal .self
                                                  {
                                                  }
                                                  self:normal .icon
                                                  {
                                                  -fm-icon-color: rgba(40%,69.4118%,19.6078%,1);
                                                  }

                                                Popover Buttons

                                                Popover Button Properties Coordinates
                                                  Type:
                                                • Text: Setup
                                                • Top: 114 pt
                                                • Left: 570 pt
                                                • Bottom: 150 pt
                                                • Right: 689 pt
                                                • Anchoring: Left, Top
                                                Popover Properties Coordinates
                                                  Show Title Bar:
                                                • Yes
                                                  Title:
                                                • "Setup"
                                                  Position:
                                                • Left
                                                • Top: 113 pt
                                                • Left: 278 pt
                                                • Bottom: 643 pt
                                                • Right: 559 pt
                                                • Anchoring: Left, Top
                                                Popover Content
                                                Tab Controls Slide Controls Fields Buttons Portals Web Viewer Controls Charts
                                                    Field Objects
                                                  • Text: Quartz Filter Manager-->Perform Script [ “Quartz Filter Functions”; Parameter: "ShowFilterManager" ] at (340, 294, 367, 527)
                                                  • Text: Read all available Quartz Filters-->Perform Script [ “Quartz Filter Functions”; Parameter: "GetFilterList" ] at (371, 294, 398, 527)

                                                  • Popover Button Properties Coordinates
                                                      Type:
                                                    • Text: PreView
                                                    • Top: 154 pt
                                                    • Left: 446 pt
                                                    • Bottom: 190 pt
                                                    • Right: 565 pt
                                                    • Anchoring: Left, Top
                                                    Popover Properties Coordinates
                                                      Show Title Bar:
                                                    • Yes
                                                      Title:
                                                    • "PreView"
                                                      Position:
                                                    • Right
                                                    • Top: 113 pt
                                                    • Left: 576 pt
                                                    • Bottom: 979 pt
                                                    • Right: 1107 pt
                                                    • Anchoring: Left, Top
                                                    Popover Content
                                                    Tab Controls Slide Controls Fields Buttons Portals Web Viewer Controls Charts
                                                        Field Objects
                                                        Conditional Formatting Condition Format
                                                        1.

                                                          self:normal .self
                                                          {
                                                          }
                                                          self:normal .icon
                                                          {
                                                          -fm-icon-color: rgba(40%,69.4118%,19.6078%,1);
                                                          }

                                                        Script Hierarchy

                                                        OnLayoutEnter_SetupDrop
                                                        OnLayoutExit_FreeDrop
                                                        DropZone ReInitialize i.e. after Layout Mode
                                                        DragAction
                                                        Clear all
                                                        UpDownManualTrigger
                                                        Combine PDFs
                                                        Export FinalPDF
                                                        Quartz Filter Functions

                                                        Next Script: [OnLayoutExit_FreeDrop]
                                                        Script Name OnLayoutEnter_SetupDrop
                                                        Run script with full access privileges Off
                                                        Siri Shortcut Visible Off
                                                        Include In Menu No
                                                        Layouts that use this script
                                                          Scripts that use this script
                                                          Script Definition
                                                          Script Steps
                                                          • #let FileMaker build the layout
                                                          • Pause/Resume Script [ Duration (seconds): ,1 ]
                                                          • #now add our control
                                                          • Set Variable [ $$dropview; Value:MBS("DragDrop.CreateWithControl"; 0 /* current */; "drop") ]
                                                          • Set Variable [ $result; Value:MBS( "DragDrop.RegisterDropTypes"; $$dropview; "pdf") ]
                                                          • Set Variable [ $result; Value:MBS( "DragDrop.SetDragActionHandler"; $$dropview; Get ( FileName ); "DragAction") ]
                                                          • Set Variable [ $result; Value:MBS( "DragDrop.SetCursor"; $$dropview; 1) ]
                                                          • If [ MBS("Container.GetCount"; PDFTool__PTO::gDropLogo) = 0 ]
                                                          • Show Custom Dialog [ Title: "Warning"; Message: "Logo for drop container is empty?"; Default Button: “OK”, Commit: “Yes”; Button 2: “Abbrechen”, Commit: “No” ]
                                                          • Else [ ]
                                                          • Set Variable [ $result; Value:MBS( "DragDrop.SetImage"; $$dropview; PDFTool__PTO::gDropLogo) ]
                                                          • End If
                                                          Fields used in this script
                                                          Scripts used in this script
                                                            Layouts used in this script
                                                              Tables used in this script
                                                              Table occurrences used by this script
                                                              Custom Functions used by this script
                                                                Custom menu set used by this script

                                                                  Previous Script: [OnLayoutEnter_SetupDrop] Next Script: [DropZone ReInitialize i.e. after Layout Mode]
                                                                  Script Name OnLayoutExit_FreeDrop
                                                                  Run script with full access privileges Off
                                                                  Siri Shortcut Visible Off
                                                                  Include In Menu No
                                                                  Layouts that use this script
                                                                    Scripts that use this script
                                                                    Script Definition
                                                                    Script Steps
                                                                    • If [ Length($$dropView) > 0 ]
                                                                    • Set Variable [ $result; Value:MBS( "DragDrop.Release"; $$dropview) ]
                                                                    • Set Variable [ $$dropview; Value:"" ]
                                                                    • End If
                                                                    Fields used in this script
                                                                      Scripts used in this script
                                                                        Layouts used in this script
                                                                          Tables used in this script
                                                                            Table occurrences used by this script
                                                                              Custom Functions used by this script
                                                                                Custom menu set used by this script

                                                                                  Previous Script: [OnLayoutExit_FreeDrop] Next Script: [DragAction]
                                                                                  Script Name DropZone ReInitialize i.e. after Layout Mode
                                                                                  Run script with full access privileges Off
                                                                                  Siri Shortcut Visible Off
                                                                                  Include In Menu No
                                                                                  Layouts that use this script
                                                                                  Scripts that use this script
                                                                                    Script Definition
                                                                                    Script Steps
                                                                                    • Perform Script [ “OnLayoutExit_FreeDrop” ]
                                                                                    • Perform Script [ “OnLayoutEnter_SetupDrop” ]
                                                                                    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: [DropZone ReInitialize i.e. after Layout Mode] Next Script: [Clear all]
                                                                                                Script Name DragAction
                                                                                                Run script with full access privileges Off
                                                                                                Siri Shortcut Visible Off
                                                                                                Include In Menu No
                                                                                                Layouts that use this script
                                                                                                  Scripts that use this script
                                                                                                    Script Definition
                                                                                                    Script Steps
                                                                                                    • # NOTE: The Setup calls this Script by Name, so change the Name in the Setup Script, if you rename the this script
                                                                                                    • Set Variable [ $dropview; Value:Get(ScriptParameter) ]
                                                                                                    • Set Variable [ $names; Value:¶ ]
                                                                                                    • #check types
                                                                                                    • Set Variable [ $Types; Value:MBS("DragDrop.GetTypes"; $dropview) ]
                                                                                                    • #Check for paths in Drag & Drop
                                                                                                    • Set Variable [ $count; Value:MBS("DragDrop.GetPathCount"; $dropview) ]
                                                                                                    • If [ $count > 0 ]
                                                                                                    • Set Variable [ $index; Value:0 ]
                                                                                                    • Loop [ Flush: Always ]
                                                                                                    • Pause/Resume Script [ Duration (seconds): ,1 ]
                                                                                                    • Set Variable [ $path; Value:MBS("DragDrop.GetPath"; $dropview; $index) ]
                                                                                                    • If [ Length ( $path ) > 0 ]
                                                                                                    • If [ MBS("Files.FileExists"; $path) = 0 ]
                                                                                                    • #File not yet written? Wait a bit
                                                                                                    • Pause/Resume Script [ Duration (seconds): 1 ]
                                                                                                    • End If
                                                                                                    • Set Variable [ $name; Value:MBS( "Path.LastPathComponent"; $path) ]
                                                                                                    • Set Variable [ $names; Value:$names & $name & ¶ ]
                                                                                                    • New Record/Request
                                                                                                    • Set Field [ PDFTool__PTO::PDFContainer; MBS("Files.ReadFile"; $path; "auto") ]
                                                                                                    • Set Field [ PDFTool__PTO::Path; $path ]
                                                                                                    • Set Field [ PDFTool__PTO::FileName; $name ]
                                                                                                    • Set Field [ PDFTool__PTO::InternalFileSourceNote; "Got via path list" ]
                                                                                                    • Set Field [ PDFTool__PTO::Sort; Max ( PDFTool__Self|One::Sort ) + 1 ]
                                                                                                    • Set Field [ PDFTool__PTO::NumberOfPagesInFile; MBS( "PDFKit.GetPDFPageCount"; PDFTool__PTO::PDFContainer ) ]
                                                                                                    • Commit Records/Requests [ No dialog ]
                                                                                                    • End If
                                                                                                    • #next
                                                                                                    • Set Variable [ $index; Value:$index+1 ]
                                                                                                    • Exit Loop If [ $index = $count ]
                                                                                                    • End Loop
                                                                                                    • End If
                                                                                                    • #Check for a file descriptor coming with Drag & Drop
                                                                                                    • Set Variable [ $count; Value:MBS("DragDrop.GetFileDescriptorCount"; $dropview; "") ]
                                                                                                    • If [ $count > 0 ]
                                                                                                    • Set Variable [ $index; Value:0 ]
                                                                                                    • Loop [ Flush: Always ]
                                                                                                    • Pause/Resume Script [ Duration (seconds): ,1 ]
                                                                                                    • Set Variable [ $name; Value:MBS("DragDrop.GetFileDescriptor"; $dropview; $index; "name") ]
                                                                                                    • Set Variable [ $data; Value:MBS("DragDrop.GetFileDescriptor"; $dropview; $index; "data") ]
                                                                                                    • Set Variable [ $size; Value:MBS("DragDrop.GetFileDescriptor"; $dropview; $index; "size") ]
                                                                                                    • Set Variable [ $path; Value:MBS("DragDrop.GetFileDescriptor"; $dropview; $index; "path") ]
                                                                                                    • Set Variable [ $pos; Value:Position ( $names; ¶ & $name & ¶; 1; 1) ]
                                                                                                    • If [ $pos = 0 ]
                                                                                                    • #not a duplicate
                                                                                                    • If [ Length ( $path ) > 0 ]
                                                                                                    • New Record/Request
                                                                                                    • Set Field [ PDFTool__PTO::PDFContainer; MBS("Files.ReadFile"; $path; "auto") ]
                                                                                                    • Set Field [ PDFTool__PTO::InternalFileSourceNote; "Got via file descriptor with path" ]
                                                                                                    • Set Field [ PDFTool__PTO::Path; $path ]
                                                                                                    • Commit Records/Requests [ No dialog ]
                                                                                                    • Else If [ $size > 0 ]
                                                                                                    • New Record/Request
                                                                                                    • Set Field [ PDFTool__PTO::PDFContainer; $data ]
                                                                                                    • Set Field [ PDFTool__PTO::Path; $name ]
                                                                                                    • Set Field [ PDFTool__PTO::InternalFileSourceNote; "Got via file descriptor with data" ]
                                                                                                    • Commit Records/Requests [ No dialog ]
                                                                                                    • End If
                                                                                                    • Set Variable [ $names; Value:$names & $name & ¶ ]
                                                                                                    • End If
                                                                                                    • #next
                                                                                                    • Set Variable [ $index; Value:$index+1 ]
                                                                                                    • Exit Loop If [ $index = $count ]
                                                                                                    • End Loop
                                                                                                    • End If
                                                                                                    • Sort Records [ Keep records in sorted order; Specified Sort Order: PDFTool__PTO::Sort; ascending ] [ Restore; No dialog ]
                                                                                                    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: [DragAction] Next Script: [UpDownManualTrigger]
                                                                                                            Script Name Clear all
                                                                                                            Run script with full access privileges Off
                                                                                                            Siri Shortcut Visible Off
                                                                                                            Include In Menu No
                                                                                                            Layouts that use this script
                                                                                                            Scripts that use this script
                                                                                                              Script Definition
                                                                                                              Script Steps
                                                                                                              • Show All Records
                                                                                                              • Set Field [ PDFTool__PTO::gFinalPDF; "" ]
                                                                                                              • Delete All Records [ No dialog ]
                                                                                                              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 all] Next Script: [Combine PDFs]
                                                                                                                      Script Name UpDownManualTrigger
                                                                                                                      Run script with full access privileges Off
                                                                                                                      Siri Shortcut Visible Off
                                                                                                                      Include In Menu No
                                                                                                                      Layouts that use this script
                                                                                                                      Scripts that use this script
                                                                                                                        Script Definition
                                                                                                                        Script Steps
                                                                                                                        • Set Variable [ $ScriptParameter; Value:Get(ScriptParameter) ]
                                                                                                                        • If [ PatternCount ( $ScriptParameter ; "Up") > 0 ]
                                                                                                                        • Set Field [ PDFTool__PTO::Sort; PDFTool__PTO::Sort - 1,5 ]
                                                                                                                        • Commit Records/Requests [ No dialog ]
                                                                                                                        • Sort Records [ Keep records in sorted order; Specified Sort Order: PDFTool__PTO::Sort; ascending ] [ Restore; No dialog ]
                                                                                                                        • Go to Record/Request/Page [ No dialog; First ]
                                                                                                                        • Replace Field Contents [ PDFTool__PTO::Sort; Replace with serial numbers: Custom values; Initial value: 1; Increment value: 1 ] [ No dialog ]
                                                                                                                        • End If
                                                                                                                        • If [ PatternCount ( $ScriptParameter ; "Down") > 0 ]
                                                                                                                        • Set Field [ PDFTool__PTO::Sort; PDFTool__PTO::Sort + 1,5 ]
                                                                                                                        • Commit Records/Requests [ No dialog ]
                                                                                                                        • Sort Records [ Keep records in sorted order; Specified Sort Order: PDFTool__PTO::Sort; ascending ] [ Restore; No dialog ]
                                                                                                                        • Go to Record/Request/Page [ No dialog; First ]
                                                                                                                        • Replace Field Contents [ PDFTool__PTO::Sort; Replace with serial numbers: Custom values; Initial value: 1; Increment value: 1 ] [ No dialog ]
                                                                                                                        • End If
                                                                                                                        • If [ PatternCount ( $ScriptParameter ; "Manual") > 0 ]
                                                                                                                        • Commit Records/Requests [ No dialog ]
                                                                                                                        • Sort Records [ Keep records in sorted order; Specified Sort Order: PDFTool__PTO::Sort; ascending ] [ Restore; No dialog ]
                                                                                                                        • Go to Record/Request/Page [ No dialog; First ]
                                                                                                                        • Replace Field Contents [ PDFTool__PTO::Sort; Replace with serial numbers: Custom values; Initial value: 1; Increment value: 1 ] [ No dialog ]
                                                                                                                        • End If
                                                                                                                        Fields used in this script
                                                                                                                        Scripts used in this script
                                                                                                                          Layouts used in this script
                                                                                                                            Tables used in this script
                                                                                                                            Table occurrences used by this script
                                                                                                                            Custom Functions used by this script
                                                                                                                              Custom menu set used by this script

                                                                                                                                Previous Script: [UpDownManualTrigger] Next Script: [Export FinalPDF]
                                                                                                                                Script Name Combine PDFs
                                                                                                                                Run script with full access privileges Off
                                                                                                                                Siri Shortcut Visible Off
                                                                                                                                Include In Menu No
                                                                                                                                Layouts that use this script
                                                                                                                                Scripts that use this script
                                                                                                                                  Script Definition
                                                                                                                                  Script Steps
                                                                                                                                  • #Start with blank list
                                                                                                                                  • If [ Get(FoundCount) = 0 ]
                                                                                                                                  • Exit Script [ ]
                                                                                                                                  • Else If [ Get(FoundCount) = 1 ]
                                                                                                                                  • Set Field [ PDFTool__PTO::gFinalPDF; PDFTool__PTO::PDFContainer ]
                                                                                                                                  • Else [ ]
                                                                                                                                  • Set Variable [ $list; Value:"" ]
                                                                                                                                  • #Load PDF from container
                                                                                                                                  • Go to Record/Request/Page [ First ]
                                                                                                                                  • Set Variable [ $NewName; Value:"Kombiniert " & PDFTool__PTO::FileName ]
                                                                                                                                  • Loop [ Flush: Always ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("PDFKit.OpenContainer"; PDFTool__PTO::PDFContainer) ]
                                                                                                                                  • If [ MBS("IsError") = 0 ]
                                                                                                                                  • Set Variable [ $list; Value:$list & $r & ¶ ]
                                                                                                                                  • End If
                                                                                                                                  • Go to Record/Request/Page [ Next; Exit after last ]
                                                                                                                                  • End Loop
                                                                                                                                  • Set Field [ PDFTool__PTO::gFinalPDF; MBS("PDFKit.Combine"; $NewName; $list) ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("PDFKit.Release"; $list) ]
                                                                                                                                  • End If
                                                                                                                                  • #Apply Quartz Filters
                                                                                                                                  • If [ not IsEmpty ( PDFTool__PTO::gQuartzFiltersToUse ) ]
                                                                                                                                  • #Just in case the user left some ¶ at the End
                                                                                                                                  • Set Field [ PDFTool__PTO::gQuartzFiltersToUse; MBS( "Text.Trim"; PDFTool__PTO::gQuartzFiltersToUse ) ]
                                                                                                                                  • Set Variable [ $MaxListOfFiltersToUse; Value:ValueCount ( PDFTool__PTO::gQuartzFiltersToUse ) ]
                                                                                                                                  • Set Variable [ $Counter; Value:1 ]
                                                                                                                                  • Loop [ Flush: Always ]
                                                                                                                                  • Set Variable [ $r; Value:MBS("PDFKit.SetCurrentFilter"; GetValue ( PDFTool__PTO::gQuartzFiltersToUse ; $Counter )) ]
                                                                                                                                  • Set Variable [ $DebugOnly; Value:MBS( "PDFKit.GetCurrentFilter" ) ]
                                                                                                                                  • Set Field [ PDFTool__PTO::gFinalPDF; MBS("PDFKit.Combine"; GetContainerAttribute ( PDFTool__PTO::gFinalPDF ; "filename" ); PDFTool__PTO::gFinalPDF) ]
                                                                                                                                  • Set Variable [ $Counter; Value:$Counter + 1 ]
                                                                                                                                  • Exit Loop If [ $Counter > $MaxListOfFiltersToUse ]
                                                                                                                                  • End Loop
                                                                                                                                  • End If
                                                                                                                                  • Commit Records/Requests [ No dialog ]
                                                                                                                                  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: [Combine PDFs] Next Script: [Quartz Filter Functions]
                                                                                                                                          Script Name Export FinalPDF
                                                                                                                                          Run script with full access privileges Off
                                                                                                                                          Siri Shortcut Visible Off
                                                                                                                                          Include In Menu No
                                                                                                                                          Layouts that use this script
                                                                                                                                          Scripts that use this script
                                                                                                                                            Script Definition
                                                                                                                                            Script Steps
                                                                                                                                            • Export Field Contents [ PDFTool__PTO::gFinalPDF; Create folders:No ]
                                                                                                                                            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: [Export FinalPDF]
                                                                                                                                                    Script Name Quartz Filter Functions
                                                                                                                                                    Run script with full access privileges Off
                                                                                                                                                    Siri Shortcut Visible Off
                                                                                                                                                    Include In Menu No
                                                                                                                                                    Layouts that use this script
                                                                                                                                                    Scripts that use this script
                                                                                                                                                      Script Definition
                                                                                                                                                      Script Steps
                                                                                                                                                      • Set Variable [ $ScriptParameter; Value:Get(ScriptParameter) ]
                                                                                                                                                      • If [ PatternCount ( $ScriptParameter ; "GetFilterList") > 0 ]
                                                                                                                                                      • Set Field [ PDFTool__PTO::gQuartzFiltersToUse; MBS("QuartzFilterManager.Filters") ]
                                                                                                                                                      • End If
                                                                                                                                                      • If [ PatternCount ( $ScriptParameter ; "ShowFilterManager") > 0 ]
                                                                                                                                                      • Set Variable [ $r; Value:MBS("QuartzFilterManager.ShowPanel") ]
                                                                                                                                                      • End If
                                                                                                                                                      Fields used in this script
                                                                                                                                                      Scripts used in this script
                                                                                                                                                        Layouts used in this script
                                                                                                                                                          Tables used in this script
                                                                                                                                                          Table occurrences used by this script
                                                                                                                                                          Custom Functions used by this script
                                                                                                                                                            Custom menu set used by this script

                                                                                                                                                              Download example: PDF Merge Shrink Tool

                                                                                                                                                              Used functions: