https://github.com/user-attachments/assets/b6e7aee9-182a-4442-9e88-88e7105441ec
Open keyboard-maestro in Script Kit
// Name: Keyboard Maestro// Description: Run or edit a Keyboard Maestro macro// Author: Pavel 'Strajk' Dolecek// Twitter: @straaajk// Cache: trueimport "@johnlindquist/kit"import plist from 'plist'import dedent from "dedent"export type TMacro = Partial<{name: stringuid: stringactive: booleancreated: numberused: numberenabled: booleanlastused: numbermodified: numbersaved: numbersort: stringtriggers: Array<Partial<{ description: string, short: string, type: string }>>}>export type TMacroGroup = Partial<{uid: stringenabled: booleanname: stringsort: stringmacros: TMacro[]}>let kmMacrosRaw = await applescript(dedent`tell application "Keyboard Maestro Engine"getmacros with asstringend tell`)let kmMacrosParsed = plist.parse(kmMacrosRaw) as TMacroGroup[]const choices = kmMacrosParsed.flatMap(group => group.macros.map(macro => ({name: `${group.name} - ${macro.name}`,value: macro.uid})))let chosen = await arg({placeholder: "Choose a macro",choices: choices,actions: [{shortcut: `${cmd}+e`,name: "Edit Macro",visible: true,flag: "edit"}]})if (flag.edit) { // Note that flag is a globalawait applescript(dedent`tell application "KeyboardMaestro"editMacro "${chosen}"activateend tell`)} else {await applescript(dedent`tell application "Keyboard Maestro Engine"do script "${chosen}"end tell`)}