Skip to content

Files

Latest commit

 

History

History

Keyboard-Maestro

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Keyboard Maestro Scripts

Scripts for use while working in Keyboard Maestro.

Although not needed, the shortcut keys I use to execute these via Keyboard Maestro or Alfred are included in case you're interested

Contents

  • Edit Linked or In-Line AppleScriptE

    • When you trigger this script, it will determine if the action copied is an in-line or linked AppleScript and open the result in your preferred AppleScript editor (default is Script Debugger).
    • If it is in-line, it will compile the text in your editor
    • Check out the demo below.
      demo
  • Add|Remove Status Menu TriggerS

    • Quickly add or remove a status menu trigger, best when mapped to a shortcut key.
  • Collapse All [Pause|Type|Execute|Cancel|Paste|Delete|Menu] Actions[

    • I like to keep these actions collapsed to keep my macros neat: Type Text, Pause for, Execute Macro, Type the keystroke, Notification, Cancel, Paste from Named Clipboard, Delete Past Clipboard, Select Menu Item, Set Variable
    • This script makes this easy by using the script Recursively Get Every Action then collapsing them for me
    • Demo: collapse
  • Copy Front Macros AppleScript TriggerC

    • Copies the AppleScript trigger for the front macro without having to show the script snippet, best when mapped to a shortcut key.

    • Result looks like:

      # ignoring application responses
      tell application "Keyboard Maestro Engine"
              do script "97A494D2-4988-4B66-853F-D72C028197D8"
              # or: do script "97A494D2-4988-4B66-853F-D72C028197D8" with parameter "Whatever"
      end tell
      # end ignoring
  • Edit Last Executed MacroE  🌎

    • Global script that shows the last executed macro, great when an edit needs to be made after execution.
  • Edit Macro Group of Front AppK  🌎

    • Quickly jump to the macro group of the app you're currently in.
  • Go To Executed MacroG

    • Jump to the macro being called within a macro by the Execute Macro action.
  • Recursively Get Every Action

    • This is a useful subroutine to get every action of the front macro, even those nested within if/else statements, switch statements, groups, etc.
  • Renumber Macro Number Prefix3

    • Batch rename macros to give them ordered number prefixes, or clear the prefixes altogether. demo
  • Run Current MacroR  🌎

    • Crucial action, I use it all the time to test out the macro I'm working on but haven't set a trigger for it yet.