Skip to content

Commit

Permalink
added collapse script
Browse files Browse the repository at this point in the history
  • Loading branch information
kevin-funderburg committed Dec 11, 2019
1 parent 92f89e1 commit 48a19e9
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -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

5 changes: 4 additions & 1 deletion Keyboard-Maestro/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)&emsp;<kbd>⌥</kbd><kbd>S</kbd>
- Quickly add or remove a status menu trigger, best when mapped to a shortcut key.

- [Collapse all Pause|Type|Execute Macro Actions][a0794034]&emsp;<kbd>⌥</kbd><kbd>⌃</kbd><kbd>[</kbd>
- 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)&emsp;<kbd>⌘</kbd><kbd>⌃</kbd><kbd>C</kbd>
- Copies the AppleScript trigger for the front macro without having to show the script snippet, best when mapped to a shortcut key.
Expand All @@ -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)&emsp;<kbd>⌃</kbd><kbd>⇧</kbd><kbd>E</kbd>&emsp; :earth_americas:
- Global script that shows the last executed macro, great when an edit needs to be made after execution.
Expand All @@ -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

0 comments on commit 48a19e9

Please sign in to comment.