MacGiro
MacGiro Scheine

AppleEvent-Befehle

Nachfolgend finden Sie eine Aufstellung aller von MacGiro unterstützen AppleEvents. Über AppleScript sind alle diese Befehle natürlich auch nutzbar, die zu verwendende Terminologie entnehmen Sie bitte dem MacGiro-Verzeichnis im AppleScript-Editor.

Diverse AppleEvents in MacGiro erwarten als direkten Parameter einen Text, der im Aufbau identisch zum Importformat ist (Felder durch Tabulatoren getrennt). Da es jedoch in einigen Programmen nicht möglich ist, Tabulatoren in Textketten einzubauen, die dann per AppleEvent verschickt werden, kann alternativ zum Tabulatorzeichen auch „¥“ verwendet werden.

1 AppleEvent-Befehle

Datenbank öffnen

Description:Opens the specified database
Event class:'aevt'
Event ID:'odoc'
Parameter:
  • keyDirectParameter ('----'):

    list of one alias record (each alias specifies a document to open)

Reply Parameter:none or 'errn' (error number)
AppleScript command:open

Programm beenden

Description:Quit an application program
Event class:'aevt'
Event ID:'quit'
Parameter:none
Reply Parameter:none or 'errn' (error number)
AppleScript command:quit

Programm beenden mit Parameter

Description:Quit an application program
Event class:'core'
Event ID:'quit'
Parameter:
  • optional 'savo' of type 'enum':

    ask ', 'yes ', 'no '; Specifies whether or not to save currently open records

Reply Parameter:none or 'errn' (error number)
AppleScript command:quit [saving yes/‌no/‌ask]

Transfer anlegen

Description:create the specified money transfer
Event class:'GIRO'
Event ID:'IMPT'
Parameter:
  • keyDirectParameter ('----'):

    tab delimited description of the money transfers (records separated by returns - same format as for import)

    or

    alternatively a file alias to a text file containing that format

  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to replace duplicate records

  • optional 'GITB' of type text:

    specifying the field separator

Reply Parameter:none or 'errn' (error number)
AppleScript command:create transfer (text or file specification) [replace yes/‌no/‌ask] [field separator text]

Vorlage anlegen

Description:create the specified money transfer stationery
Event class:'GIRO'
Event ID:'IMPV'
Parameter:
  • keyDirectParameter ('----'):

    tab delimited description of the money transfer stationery (records separated by returns - same format as for import)

    or

    alternatively a file alias to a text file containing that format

  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to replace duplicate records

  • optional 'GITB' of type text:

    specifying the field separator

Reply Parameter:none or 'errn' (error number)
AppleScript command:create transfer stationary (text or file specification) [replace yes/‌no/‌ask] [field separator text]

Bank anlegen

Description:create the specified bank
Event class:'GIRO'
Event ID:'IMPB'
Parameter:
  • keyDirectParameter ('----'):

    tab delimited description of the bank (records separated by returns - same format as for import)

    or

    alternatively a file alias to a text file containing that format

  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to replace duplicate records

  • optional 'GITB' of type text:

    specifying the field separator

Reply Parameter:none or 'errn' (error number)
AppleScript command:create bank (text or file specification) [replace yes/‌no/‌ask] [field separator text]

Eigenkonto anlegen

Description:create the specified own account
Event class:'GIRO'
Event ID:'IMPA'
Parameter:
  • keyDirectParameter ('----'):

    tab delimited description of the own account (records separated by returns - same format as for import)

    or

    alternatively a file alias to a text file containing that format

  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to replace duplicate records

  • optional 'GITB' of type text:

    specifying the field separator

Reply Parameter:none or 'errn' (error number)
AppleScript command:create own account (text or file specification) [replace yes/‌no/‌ask] [field separator text]

Fremdkonto anlegen

Description:create the specified other account
Event class:'GIRO'
Event ID:'IMPE'
Parameter:
  • keyDirectParameter ('----'):

    tab delimited description of the other account (records separated by returns - same format as for import)

    or

    alternatively a file alias to a text file containing that format

  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to replace duplicate records

  • optional 'GITB' of type text:

    specifying the field separator

Reply Parameter:none or 'errn' (error number)
AppleScript command:create other account (text or file specification) [replace yes/‌no/‌ask] [field separator text]

Benutzer anlegen

Description:create the specified user
Event class:'GIRO'
Event ID:'IMPU'
Parameter:
  • keyDirectParameter ('----'):

    tab delimited description of the user (records separated by returns - same format as for import)

    or

    alternatively a file alias to a text file containing that format

  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to replace duplicate records

  • optional 'GITB' of type text:

    specifying the field separator

Reply Parameter:none or 'errn' (error number)
AppleScript command:create user (text or file specification) [replace yes/‌no/‌ask] [field separator text]

XML-Daten importieren

Description:Create objects from XML data
Event class:'GIRO'
Event ID:'IMPX'
Parameter:
  • keyDirectParameter ('----'):

    text XML data describing MacGiro objects

    or

    alternatively a file alias to a text file containing that XML format

  • optional 'SEPA' of type 'boolean':

    'yes ', 'no '; Specifies whether or not the type is SEPA-XML (default is MacGiro-XML). In case of SEPA only type file is allowed.

Reply Parameter:none or 'errn' (error number)
AppleScript command:create objects (text or file specification) [type is SEPA yes/‌no]

Kontonummer prüfen

Description:verify the account number for given account no and BLZ
Event class:'GIRO'
Event ID:'CHKT'
Parameter:
  • keyDirectParameter ('----'):

    account number to verify or account number;BLZ

  • optional 'GBLZ' of type text:

    for BLZ

Reply Parameter:text (one of the following texts: "richtig", "falsch", "BLZ unbekannt", "BLZ falsch") or 'errn' (error number)
AppleScript command:verify accountnumber [for BLZ]

Datenbank öffnen mit Kennwort

Description:Open the specified database and login if the username and password are valid
Event class:'GIRO'
Event ID:'odoc'
Parameter:
  • keyDirectParameter ('----'):

    list of one alias record (each alias specifies a document to open)

  • optional 'GIRN' of type 'TEXT':

    Specifies the username in the login dialog

  • optional 'GIRP' of type 'TEXT':

    Specifies the password in the login dialog

Reply Parameter:none or 'errn' (error number)
AppleScript command:open list of alias [username text] [password text]

Datenbank schließen mit Nachfrage

Description:Perform tasks before close, then close
Event class:'GIRO'
Event ID:'clos'
Parameter:
  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to save currently open records

Reply Parameter:none or 'errn' (error number)
AppleScript command:close database [saving yes/‌no/‌ask]

Transfers ausführen

Description:Carry out all current transfers
Event class:'GIRO'
Event ID:'DOIT'
Parameter:
  • optional 'GIKA' of type 'bool';

    Specifies whether or not to check online accounts

  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to write a log file for BTX online transfers

  • optional 'GILG' of type file alias;

    Specifies where to save log file (should be provided if 'savo' has been specified as 'yes ')

Reply Parameter:none or 'errn' (error number)
AppleScript command:execute transfers [check account boolean] [with log file yes/‌no/‌ask][log file file specification]

Kontoabfrage

Description:Check online accounts
Event class:'GIRO'
Event ID:'CHAC'
Parameter:
  • optional 'savo' of type 'enum':

    'ask ', 'yes ', 'no '; Specifies whether or not to write a BTX log file

  • optional 'GILG' of type file alias:

    Specifies where to save log file (should be provided if 'savo' has been specified as 'yes ')

Reply Parameter:none or 'errn' (error number)
AppleScript command:check accounts [with log file yes/‌no/‌ask] [log file file specification]

Anzahl der Abgleichdialoge?

Description:Count open balancing dialogs
Event class:'GIRO'
Event ID:'cBAL'
Parameter:none
Reply Parameter:'long' (the number) or 'errn' (error number)
AppleScript command:count balancing dialogs

Anzahl der Umsätze im Abgleichdialog?

Description:Count the number of transfers in a balancing dialog
Event class:'GIRO'
Event ID:'cTRN'
Parameter:
  • 'BALD' of type 'long':

    the dialog number

Reply Parameter:'long' (the number) or 'errn' (error number)
AppleScript command:count transfers in balancing dialog integer

Umsatz lesen?

Description:Get a transfer from a balancing dialog
Event class:'GIRO'
Event ID:'gTRN'
Parameter:
  • 'BALD' of type 'long':

    the dialog number

  • 'TRNS' of type 'long':

    the transfer number

  • optional 'GITB' of type text:

    specifying the field separator

Reply Parameter:'TEXT' (the transfer in export format) or 'errn' (error number)
AppleScript command:get transfer data from transfer integer in balancing dialog integer [field separator text]

Ist in Ausführung?

Description:Test if MacGiro is busy
Event class:'GIRO'
Event ID:'BUSY'
Parameter:none
Reply Parameter:boolean or 'errn' (error number)
AppleScript command:is busy

2 Fehlermeldungen 'errn'

-25001

Es fehlt die Berechtigung, die Datenbank zu öffnen

-25002

Es können nicht alle Verwalter gelöscht werden

-25100

Inkonsistenz beim Einlesen eines Bank-Datensatzes

-251nn

Fehler beim Einlesen der nn-ten Information zu einem Bank-Datensatz

-25200

Inkonsistenz beim Einlesen eines Fremdkonto-Datensatzes

-252nn

Fehler beim Einlesen der nn-ten Information zu einem Fremdkto.-Datensatz

-25300

Inkonsistenz beim Einlesen eines Eigenkonto-Datensatzes

-253nn

Fehler beim Einlesen der nn-ten Information zu einem Eigenkonto-Datensatz

-25400

Inkonsistenz beim Einlesen eines Transfer-Datensatzes

-254nn

Fehler beim Einlesen der nn-ten Information zu einem Bank-Datensatz

-25500

Inkonsistenz beim Einlesen eines Benutzer-Datensatzes

-255nn

Fehler beim Einlesen der nn-ten Information zu einem Benutzer-Datensatz

Dabei werden die Informationen in der Reihenfolge durchnummeriert, wie sie in den jeweiligen Import-Tabellen aufgeführt sind.

Import- und Export

Beschreibung der Import- und Export-Schnittstelle.

AppleEvents

Beschreibung der AppleEvent-Schnittstelle.

XML-Schnittstelle

Beschreibung der XML-Schnittstelle.

AppleScript-Beispiele

Einige Beispiele für AppleScript.

FileMaker-Beispiel

Beispiel-Beschreibung zur Anbindung an FileMaker.