This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
Scripting_the_Keyboard_Maestro_editor [2018/04/14 18:46] JMichaelTX [5. Create Macro Group and Macros] Added error checking to Example 5 Test for Macro Group existence. |
Scripting_the_Keyboard_Maestro_editor [2018/04/14 19:02] (current) JMichaelTX Removed script from Section 4 because it won't even compile. |
||
---|---|---|---|
Line 91: | Line 91: | ||
===== 4. Get and Create Variety of Editor Objects ===== | ===== 4. Get and Create Variety of Editor Objects ===== | ||
+ | FIXME [JMichaelTX: This script removed pending review & update]. | ||
- | ```applescript | ||
- | tell app "Keyboard Maestro" | ||
- | |||
- | properties of group "Enabled" | ||
- | properties of smart group "Enabled" | ||
- | |||
- | make new smart group with properties {name:"Enabled", search strings:{"enabled:yes"}} | ||
- | set search strings of smart group "Disabled" to {"enabled:no"} | ||
- | |||
- | set enable of macro group "Turn Off" to false | ||
- | |||
- | set name of macro 1 to "Great!" | ||
- | |||
- | tell macro group "New Stuff" to make new macro | ||
- | | ||
- | set color of action 1 of macro "Bright" to "red" | ||
- | |||
- | select action 1 through 3 of action 2 of macro "Working" | ||
- | |||
- | set selection to global macro group | ||
- | |||
- | move first action of macro "Source Macro" to end of actions of macro "Dest Macro" | ||
- | |||
- | move macro "Macro33" to macro group "Test4" | ||
- | move (every macro of macro group "Test4" whose name starts with "Macro3") to macro group "Test3" | ||
- | move macro 2 of macro group "Test3" to macro group "Test4" | ||
- | |||
- | delete second action of macro "Target Macro" | ||
- | | ||
- | duplicate every macro group whose name starts with "Test" | ||
- | |||
- | set m to duplicate action 1 of macro "Macro33" to after action 2 of macro "Macro32" | ||
- | |||
- | duplicate (selected macros) to macro group "Test4" | ||
- | |||
- | end tell | ||
- | ``` | ||
===== 5. Create Macro Group and Macros ===== | ===== 5. Create Macro Group and Macros ===== |