From 48a19e92150aca951de034c4327bb89abccb431b Mon Sep 17 00:00:00 2001 From: Kevin Funderburg Date: Wed, 11 Dec 2019 03:34:41 -0600 Subject: [PATCH] added collapse script --- ...-All-[Pause|Type|Execute-Macro]-Actions.applescript | 10 ++++++++++ Keyboard-Maestro/README.md | 5 ++++- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 Keyboard-Maestro/Collapse-All-[Pause|Type|Execute-Macro]-Actions.applescript diff --git a/Keyboard-Maestro/Collapse-All-[Pause|Type|Execute-Macro]-Actions.applescript b/Keyboard-Maestro/Collapse-All-[Pause|Type|Execute-Macro]-Actions.applescript new file mode 100644 index 0000000..b406c60 --- /dev/null +++ b/Keyboard-Maestro/Collapse-All-[Pause|Type|Execute-Macro]-Actions.applescript @@ -0,0 +1,10 @@ +tell application "Keyboard Maestro" + set m to first macro whose selected is true + set acts to m's actions + repeat with a in acts + if name of a contains "Pause for" or name of a contains "Type the" or name of a contains "Execute Macro" then + if disclosed of a is true then set disclosed of a to false + end if + end repeat +end tell + diff --git a/Keyboard-Maestro/README.md b/Keyboard-Maestro/README.md index 102bda5..d105d04 100644 --- a/Keyboard-Maestro/README.md +++ b/Keyboard-Maestro/README.md @@ -21,6 +21,9 @@ Scripts for use while working in [Keyboard Maestro](https://www.keyboardmaestro. - [Add|Remove Status Menu Trigger](./Add|Remove-Status-Menu-Trigger) S - Quickly add or remove a status menu trigger, best when mapped to a shortcut key. +- [Collapse all Pause|Type|Execute Macro Actions][a0794034] [ + - I like to keep `Type Text`, `Pause for`, and `Execute Macro` actions collapsed for neatness so this is a nice script to collapse all of them in the front macro + - [Copy Front Macros AppleScript Trigger](./Copy-Front-Macros-AppleScript-Trigger.applescript) C - Copies the AppleScript trigger for the front macro without having to show the script snippet, best when mapped to a shortcut key. @@ -34,7 +37,6 @@ Scripts for use while working in [Keyboard Maestro](https://www.keyboardmaestro. # end ignoring ``` - - [Edit Last Executed Macro](./Edit-Last-Executed-Macro.applescript) E  :earth_americas: - Global script that shows the last executed macro, great when an edit needs to be made after execution. @@ -49,3 +51,4 @@ Scripts for use while working in [Keyboard Maestro](https://www.keyboardmaestro. [kmapp]: https://www.keyboardmaestro.co[m/ [alfredapp]: https://www.alfredapp.com/] +[a0794034]: ./Collapse-All-[Pause|Type|Execute-Macro]-Actions.applescript