logoalt Hacker News

evikstoday at 9:17 AM0 repliesview on HN

You can't do that because the design of the whole system is dumb - instead of matching by unique (within the app) universal (=across apps) menu item id like "quit" that's hardcoded into the framework, you must match by menu item displayed name "quit Safari", which is different for every "quit MyNewShinyApp"

PS: and sometimes the name string is also dynamic "Navigate to the latest folder named XYZ", so you can't match at all!