I'm testing a seemingly very simple macro in Logic Pro that checks for a menu item "Hide Editor" then selects that menu item if it exists and does nothing if it does not. The goal is to simply close the editor window if open and do nothing if it is closed. But I seem to be running into a few problems with it.
It doesn't seem to matter whether the menu item current displays "Hide" or "Show" Logic treats them in the same way. In fact when I look for the Hide menu item, it doesn't actually exist so I've tried changing it manually to Hide but that doesn't seem to work. Seemingly regardless of whether I search for Hide/Show, KM finds the same menu item. I tried "with name matching" as well, but that didn't change the macro's behavior either. I'm wondering if there is some sort of way of searching for an exact string in menu items. Or if anyone knows of any simpler ways to accomplish this I'm up for suggestions.
I have a similar macro I'm working on for closing any plug-in windows if open and would prefer to do this through menu commands as it seems more reliable but with this macro as well I've resorted to Found Image.
Hmmm...in fact playing around with it here I feel like I'm experiencing some odd behavior with using the menu items in general and that perhaps I don't understand them correctly. I've simply add a Select Menu Item action and selected Show All Plug-in Windows, however when I trigger this action it does the opposite, it only Hides open plug-in windows. The opposite is also true. When I modify the menu item manually (because hide is not in the list) to read Hide All Plug-in Windows and trigger the action it only Shows plug-in windows. I'm little confused
I'll keep chipping away here and trying to troubleshoot but if anyone has any ideas or ways of troubleshooting I'd appreciate it.
I'm not sure, but did you read the following page especially the part which says, "The Select Menu action allow you to specify multiple options separated by a vertical bar (eg Show|Hide) to allow for toggling or varying menus."
@noisneil Indebted! I hate to ask but I'm going to. Any thoughts on how to do this sort of thing for the Track Inspector? I'm hoping to use Art Conductor presets but the only way they work for some reason is if the Track Inspector window is open. My action for this, obviously, involves a search for image bit. I feel like it's not very reliable
I've just disabled all other actions to isolate this one and see if it's working as expected...and it is not. Every time I push the MIDI CC trigger the track inspector seems to be opening/closing for some reason
And @noisneil I've gone back to my first post where you linked a bunch of macros you've made. Looking through those, doing a bit of homework. Great way to learn this stuff
There are a bunch of macros in that thread that automate opening the inspector via an AppleScript submacro. I think the fades macros might be one, so you should be able to incorporate it into your macro.