Instantiating User Patches

New KM user. Trying to set up a command that allows me to quickly add user patches in Logic Pro.

It works when the Library is closed the Macro works but if it is already open then it doesn't.

Screenshot 2024-08-23 at 13.37.14

Is there some way to add an IF statement to the 3rd action here so that it will show if hidden and do nothing if shown?

Is there a way to selecting Menu Title without the Menu Item? If I could insert an IF statement there I feel like I could get it to work. I get the feeling it may be a bit more complicated than that though.

This obviously doesn't work but hopefully you get the idea of what I'm wanting to accomplish

Screenshot 2024-08-23 at 15.16.48

There are a few ways to do this.

If the menu item changes from “Show Library” to “Hide Library” when the Library is open you can have an IF Then with the condition:

If a menu item named “Hide Library” exists
Do nothing
Otherwise select menu item “Show Library”

Or even simpler, set your “Open Library” Action to not abort the macro or notify on failure using the gear menu in its top right corner. This means the Action will only do anything if the Library is not already open.Otherwise it will fail but the macro will carry on to the next step.

1 Like

You need to spot a difference between the states when "Show Library" is and isn't selected, then test for those. For example, is the menu item "enabled" (gets a check mark) after you select it? Or does the menu item toggle between "Show Library" and "Hide Library"?

1 Like

Well it might not be the most elegant solution but I think I've got it for now

2 Likes

The best way I've found to do this is by dragging and dropping from the Finder. The good news is, you can reliably automate this and it's pretty quick.

Check out Strip Search near the top of this thread.