Trigger by Apple Script does not trigger

I have a KM-Macro and my desired trigger would be "Triggered by Apple Script".
I copied the script in the script-editor and tried to start it:
... and got the following information: "Keyboard Maestro Engine" got a mistake: do script found no macros with a matching name.

What can I do?

Copy the UUID of the macro via the KM menu Edit - Copy as - Copy UUID and insert it into the AppleScript (XXXXXXXXXX).
Your macro should then be activated when you trigger the AppleScript.

Here's the script for it:

tell application "Keyboard Maestro Engine"
	do script "xxxxxxxxxxxxxxxxxxxxx"
end tell

Genau das klappt bei mir nicht:
error " "Keyboard Maestro Engine" hat einen Fehler erhalten: do script found no macros with a matching" number -1
Thomas
(thomas@drschnell.at)

Hast du eine einzelnes Makro ausgewählt oder eine Makro Gruppe?

ein einzelnes Macro

Bei den Macros steht am Ender der Spalte "Palette", "§§2" und bei besagtem Macro "None" - hilft das evtl.?

Kannst dummer das Makro mal hier teilen? Ggf. einen Screenshot?

Ich arbeitet zu 95% mit diesem AppleScript in Verbindung mit BTT. Funktioniert bei mir einwandfrei bei aktuellem macOS Mojave und KM.

beides gerne - sag mir wie das geht

Gib mir 10 Minuten :wink:

In dem Video habe ich die kurz die Schritte dargestellt.
Bitte kopiere, wie im Video, den Text aus Safari und setze diesen dann hier in deine Antwort ein.

CloudApp

Keyboard Maestro 8.2.4 “Kasse HKP drucken” Macro

das ist das einzige was nach Klick auf both in der Box erscheint.
Die letzten Sekunden deines Videos habe ich nicht kapiert: wo kopierst du das und wohin?

Den Text wie im Video kopieren und dann hier eine neue Nachricht an mich schreiben.
Dann per Paste den Text in die Nachricht einfügen.

Keyboard Maestro 8.2.4 “Kasse HKP drucken” Macro

... mehr ist nicht

Ok, dann mache bitte mal einen Screenshot von dem Makro (macOS oder andere App) und stelle diesen hier ein.

The very first thing I would want to ask for is to see a copy of the script you're using to try and invoke your macro, as it sounds like that's where the problem is. Could you copy and paste the script from Script Editor verbatim, so we can see exactly what is being executed ?

1 Like

with §§1 typed it works very good - also with the palette

Kopiere bitte mal das AppleScript in deinem Makro und erstelle ein neues Makro nur mit der Aktion "Execute AppleScript"

Beispiel:

Dann drücke mal oben den Play-Button oben.

ja- das klappt wie gewünscht :slight_smile:

1 Like

Wenn dein Trigger „§§1“ funktioniert, was willst du dann mit dem AppleScript anfangen oder wo und wie willst du es einbinden?

If your trigger "§§1" works, what do you want to do with the AppleScript or where and how do you want to embed it?