Fuzzy Matching Menu Items

Is there a way to fuzzy match a menu item for the Select or Show a Menu Item action?

Desired Result

Pressing a hot key in Safari activates: Develop -> Open Page With -> Google Chrome.app (<version number>)

The issue is that the version number can change as Chrome is updated. Thus, I don’t want to hardcode the exact menu item name.

Yes, you can use options (one|two|three) or regular expressions (^one.*) in the select menu action. You can also use the token APPLICATION to replace with the front application name.

See the documentation for more info.

Thank you very much, Peter. This is wonderful.

!!! This is amazing.

@peternlewis In my quick tests just now, I couldn’t get this to work with any regular expression unless it had ^ at the beginning. Is that expected? (This doesn’t hamper me—just wondering.)

Yes. The ^ is what indicates it is a regular expression.

MMkay, I’m doing this wrong.

I’m trying to fire a menu in Daylite that is named “Bulk Edit [X] People” Where [X] is the number of database records currently selected.

How do I write a regular expression to make this work? I’ve tried it numerous ways and nothing happens. I’ve used online RegEx generators to make sure my syntax is okay.

Thanks in advance.

^Bulk Edit .+ People

or if [X] is always just a sequence of digits, then:

^Bulk Edit \d+ People

Thanks. Working now.

Not only was my RegEx wrong, but the Daylite Group was constrained to an obsolete version, so no macros were working.

All better now.