Is It Conceivable to Create a Macro to Generate Other Macros?

Hey @ronald,

You can:

  • Create a macro.
  • Copy its XML.
  • Make changes to the XML by whatever means.
  • Create a new macro using the changed XML with AppleScript.

So – the answer to your question is yes.

Not so simple, but not so difficult either.

See this thread for the basics:

Macro to Create a Text Expansion Macro from the Selected Text

Peter's macro will NOT do what you want, but the mechanisms he uses give you the gist of HOW to do what you want.

-Chris

1 Like