This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | Next revision Both sides next revision | ||
Scripting_the_Keyboard_Maestro_editor [2017/09/20 23:24] JMichaelTX ADD selecting lists of objects |
Scripting_the_Keyboard_Maestro_editor [2017/10/13 22:07] JMichaelTX Move script for Macro Groups to here |
||
---|---|---|---|
Line 44: | Line 44: | ||
``` | ``` | ||
+ | ===== 2. Macro Groups ===== | ||
- | ===== 2. Get and Create Variety of Editor Objects ===== | + | **Disable a Macro Group** |
+ | |||
+ | <code applescript> | ||
+ | tell application "Keyboard Maestro" | ||
+ | set enabled of macro group "Macro Group Name" to false | ||
+ | end tell | ||
+ | </code> | ||
+ | |||
+ | **Edit a Macro Group** | ||
+ | |||
+ | <code applescript> | ||
+ | tell application "Keyboard Maestro" | ||
+ | editMacro "Macro Group Name or UID" | ||
+ | end tell | ||
+ | </code> | ||
+ | |||
+ | **Get the list of currently selected macro groups** | ||
+ | |||
+ | <code applescript> | ||
+ | tell application "Keyboard Maestro" | ||
+ | set groupList to selected macro groups | ||
+ | end tell | ||
+ | </code> | ||
+ | |||
+ | ===== 3. Get and Create Variety of Editor Objects ===== | ||
Line 86: | Line 111: | ||
``` | ``` | ||
- | ===== 3. Create Macro Group and Macros ===== | + | ===== 4. Create Macro Group and Macros ===== |
Here is a full example that creates a macro group called "Multiple Clipboards" and then creates 9 macros with hot Control-C and action to copy the clipboard to a named clipboard with name "Clipboard N" (where N is 1-9) and another set of 9 macros with hot key Control-V and action to paste from the named clipboard "Clipboard N" | Here is a full example that creates a macro group called "Multiple Clipboards" and then creates 9 macros with hot Control-C and action to copy the clipboard to a named clipboard with name "Clipboard N" (where N is 1-9) and another set of 9 macros with hot key Control-V and action to paste from the named clipboard "Clipboard N" |