I've never used OmniFocus, so unfortunately I can't test this, but I would imagine that, assuming OF supports AppleScript, this should be possible to do by using AS to extract the project name from the item currently selected, then using that name in a variable in the "Select or Show Menu Item" action.
If the project name is also displayed in the front OF window when selecting an item, then you could use a "Front Window Name" token to grab the project name and set it to a variable this way (including a "Search and Replace Variable" action if there's more text in the front window title besides the project name):
How would I select a menu item that has many more potential names but all begin with the same word?
For example, right now I'm trying to create a hotkey for ejecting the selected hard disk on my desktop. However, depending on the specific hard drive selected, the second part of the menu name will change to the name of the selected item.
ooops I thought I had tried that before, but just realized the reason it didnt work before was because I had set that hotkey to something else using another app (BetterTouchTool) Sorry. But it works now!! Thank you!!
Hi there, this is all super helpful for me, but I was wondering how to have KM check a menu item that ENDS with a specific word? Using KM in Adobe Premiere to get it to toggle between timelines using the menu, but the timeline names are always different. Not very good with RegEx, want it to click the menu ending in "EDL-REF," so I tried:
Doesn't work though. Any help would be appreciated!
Yeah I figured the menu type was causing problems. If I enter the full name of the timeline it does work just fine, it would be handy if the regex worked to give more options though Is there any way to tell it to select the menu item containing the name? As opposed to ending with it? I noticed if I use KM to check if such a menu item is checked, it is able to do this perfectly without the RegEx.
I'm having the same problem, but more generally, i.e., the variable in the menu can contain anything.
The app in question at the moment is Apple Mail. One of the menu commands is: "Move to '' again. (e.g., Move to "Acme Inc." again.) (It's found under the "Message" menu.)
Since the variable is wherever you just previously moved a message, it can be anything. So with traditional variables, the menu command might be shown as: "Move to * again". That would select anything that started with "Move to" and ends with "again". The "*" wildcard symbol would show that the data at that point could be anything as long as the text before and after it matches.
I am answering my own question. I added the ^ at the beginning in the Menu Item field and now it works! To be clear, this is what worked: ^%Variable%LogicPro_RegionName%