Applescript Support für ein von Lazarus erstelltes Programm

Antworten
bmueller
Beiträge: 5
Registriert: So 2. Dez 2007, 20:32
OS, Lazarus, FPC: Winux (L 0.9.xy FPC 2.2.z)
CPU-Target: xxBit
Wohnort: Hübingen / Westerwald
Kontaktdaten:

Applescript Support für ein von Lazarus erstelltes Programm

Beitrag von bmueller »

Hallo,

gibt es eine Möglichkeit für ein mit Lazarus erstelltes Programm Applescript Support einzubauen?
Also nicht aus der erstellten Software heraus Applescript aufzurufen (dazu gibt es ja einige Beispiele) sondern das Programm mittels Applescript zu steuern. Und das über Öffnen und Schließen hinaus.
Wie ich gesehen habe braucht man eine Applescript Dictionary, aber wie kommt man an die im Programm liegenden Befehle heran? Also bei Excel kann man z.B, sagen: Öffne Excel, erstelle neues Spreadsheet, gib folgende Werte ein, usw.
Sowas für ein Lazarus erstelltes eigenes Programm suche ich.
Hat das schon mal jemand gemacht?

Viele Grüße,
Bernhard
Wo ich sitze, ist immer oben !
(Bismarck)

DonAlfredo
Beiträge: 74
Registriert: Do 28. Sep 2017, 10:26

Re: Applescript Support für ein von Lazarus erstelltes Programm

Beitrag von DonAlfredo »

Example script used by fpcupdeluxe.
procedure CreateDesktopShortCut
https://github.com/LongDirtyAnimAlf/fpc ... .pas#L1021

bmueller
Beiträge: 5
Registriert: So 2. Dez 2007, 20:32
OS, Lazarus, FPC: Winux (L 0.9.xy FPC 2.2.z)
CPU-Target: xxBit
Wohnort: Hübingen / Westerwald
Kontaktdaten:

Re: Applescript Support für ein von Lazarus erstelltes Programm

Beitrag von bmueller »

Thank you, but that wasn't what I meant. I know how to call Applescript from within Lazarus/fpc.
What I wanted was how I can call functions from my Lazarus/fpc program by Applescript.
Which means, how can I make my program controllable by Applescript.
That is basically the other way round.
Example: https://www.raywenderlich.com/1033-maki ... e-tutorial
Wo ich sitze, ist immer oben !
(Bismarck)

Antworten