Skip to content

The document says "hs.application.findMenuItem" can only search for menu items that don't have children #3802

@avegetablechicken

Description

@avegetablechicken

The document says "hs.application.findMenuItem" can only search for menu items that don't have children, but actually it can search for submenu like "File > Open Recent".
BTW, is it possible to add a key like "isSubmenu" in return of "hs.application.findMenuItem"? I want to decide to show the menu item or select the menu item according to the return. Now I have to manually fetch the axuielement to check it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions